mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-13 15:43:39 +00:00
![Guillaume Girol](/assets/img/avatar_default.png)
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
55 lines
1.0 KiB
Nix
55 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, h5py
|
|
, numpy
|
|
, six
|
|
, wasserstein
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "EnergyFlow";
|
|
version = "1.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pkomiske";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-fjT8c0ZTjdufP334upPzRVdTJDIBs84I7PkFu4CMcQw=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace "setup_requires=" "" \
|
|
--replace "pytest-runner" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
h5py
|
|
numpy
|
|
six
|
|
wasserstein
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
pytestFlagsArray = [
|
|
"energyflow/tests"
|
|
];
|
|
disabledTestPaths = [
|
|
"energyflow/tests/test_archs.py" # requires tensorflow
|
|
"energyflow/tests/test_emd.py" # requires "ot"
|
|
];
|
|
|
|
pythonImportsCheck = [ "energyflow" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python package for the EnergyFlow suite of tools";
|
|
homepage = "https://energyflow.network/";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ veprbl ];
|
|
};
|
|
}
|