lol

Merge pull request #192781 from veprbl/pr/energyflow_init

authored by

Martin Weinelt and committed by
GitHub
dae204fa a9a7dc14

+108
+54
pkgs/development/python-modules/energyflow/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , h5py 5 + , numpy 6 + , six 7 + , wasserstein 8 + , pytestCheckHook 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "EnergyFlow"; 13 + version = "1.3.2"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "pkomiske"; 17 + repo = pname; 18 + rev = "v${version}"; 19 + hash = "sha256-fjT8c0ZTjdufP334upPzRVdTJDIBs84I7PkFu4CMcQw="; 20 + }; 21 + 22 + postPatch = '' 23 + substituteInPlace setup.cfg \ 24 + --replace "setup_requires=" "" \ 25 + --replace "pytest-runner" "" 26 + ''; 27 + 28 + propagatedBuildInputs = [ 29 + h5py 30 + numpy 31 + six 32 + wasserstein 33 + ]; 34 + 35 + checkInputs = [ 36 + pytestCheckHook 37 + ]; 38 + pytestFlagsArray = [ 39 + "energyflow/tests" 40 + ]; 41 + disabledTestPaths = [ 42 + "energyflow/tests/test_archs.py" # requires tensorflow 43 + "energyflow/tests/test_emd.py" # requires "ot" 44 + ]; 45 + 46 + pythonImportsCheck = [ "energyflow" ]; 47 + 48 + meta = with lib; { 49 + description = "Python package for the EnergyFlow suite of tools"; 50 + homepage = "https://energyflow.network/"; 51 + license = licenses.gpl3Only; 52 + maintainers = with maintainers; [ veprbl ]; 53 + }; 54 + }
+50
pkgs/development/python-modules/wasserstein/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , numpy 5 + , llvmPackages 6 + , wurlitzer 7 + , pytestCheckHook 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "Wasserstein"; 12 + version = "1.1.0"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "pkomiske"; 16 + repo = pname; 17 + rev = "89c2d6279a7e0aa3b56bcc8fb7b6009420f2563e"; # https://github.com/pkomiske/Wasserstein/issues/1 18 + hash = "sha256-s9en6XwvO/WPsF7/+SEmGePHZQgl7zLgu5sEn4nD9YE="; 19 + }; 20 + 21 + buildInputs = [ 22 + llvmPackages.openmp 23 + ]; 24 + propagatedBuildInputs = [ 25 + numpy 26 + wurlitzer 27 + ]; 28 + 29 + checkInputs = [ 30 + pytestCheckHook 31 + ]; 32 + pytestFlagsArray = [ 33 + "wasserstein/tests" 34 + ]; 35 + disabledTestPaths = [ 36 + "wasserstein/tests/test_emd.py" # requires "ot" 37 + # cyclic dependency on energyflow 38 + "wasserstein/tests/test_externalemdhandler.py" 39 + "wasserstein/tests/test_pairwiseemd.py" 40 + ]; 41 + 42 + pythonImportsCheck = [ "wasserstein" ]; 43 + 44 + meta = with lib; { 45 + description = "Python/C++ library for computing Wasserstein distances efficiently"; 46 + homepage = "https://github.com/pkomiske/Wasserstein"; 47 + license = licenses.gpl3Only; 48 + maintainers = with maintainers; [ veprbl ]; 49 + }; 50 + }
+4
pkgs/top-level/python-packages.nix
··· 2948 2948 2949 2949 enamlx = callPackage ../development/python-modules/enamlx { }; 2950 2950 2951 + energyflow = callPackage ../development/python-modules/energyflow { }; 2952 + 2951 2953 enhancements = callPackage ../development/python-modules/enhancements { }; 2952 2954 2953 2955 enlighten = callPackage ../development/python-modules/enlighten { }; ··· 11646 11648 waqiasync = callPackage ../development/python-modules/waqiasync { }; 11647 11649 11648 11650 wasabi = callPackage ../development/python-modules/wasabi { }; 11651 + 11652 + wasserstein = callPackage ../development/python-modules/wasserstein { }; 11649 11653 11650 11654 wasm = callPackage ../development/python-modules/wasm { }; 11651 11655