Commit 6227dcc0 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python312Packages.nocturne: unstable-2022-10-15 -> 0-unstable-2024-06-19

parent 2444dc75
Loading
Loading
Loading
Loading
+21 −16
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  cmake,
  fetchFromGitHub,
  gtest,
  hydra-core,
  lib,
  nlohmann_json,
  pybind11,
  pyvirtualdisplay,
  sfml,
  replaceVars,
  gtest,
  setuptools,
  cmake,
  sfml,
  hydra-core,
  pyvirtualdisplay,
}:

buildPythonPackage rec {
buildPythonPackage {
  pname = "nocturne";
  version = "unstable-2022-10-15";
  format = "setuptools";
  version = "0-unstable-2024-06-19";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "facebookresearch";
    repo = pname;
    rev = "ae0a4e361457caf6b7e397675cc86f46161405ed";
    hash = "sha256-pFVbl4m7qX1mJgleNabRboS9klDDsbzUa4PYL5+Jupc=";
    repo = "nocturne";
    rev = "6d1e0f329f7acbed01c934842b269333540af6d2";
    hash = "sha256-Ufhvc+IZUrn8i6Fmu6o81LPjY1Jo0vzsso+eLbI1F2s=";
  };

  # Simulate the git submodules but with nixpkgs dependencies
@@ -37,13 +38,17 @@ buildPythonPackage rec {
    })
  ];

  build-system = [
    setuptools
  ];

  nativeBuildInputs = [ cmake ];
  dontUseCmakeConfigure = true;

  buildInputs = [ sfml ];

  # hydra-core and pyvirtualdisplay are not declared as dependences but they are requirements
  propagatedBuildInputs = [
  dependencies = [
    hydra-core
    pyvirtualdisplay
  ];
@@ -53,10 +58,10 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "nocturne" ];

  meta = with lib; {
  meta = {
    description = "Data-driven, fast driving simulator for multi-agent coordination under partial observability";
    homepage = "https://github.com/facebookresearch/nocturne";
    license = licenses.mit;
    maintainers = with maintainers; [ samuela ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ samuela ];
  };
}