depot/third_party/nixpkgs/pkgs/development/python-modules/paramz/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

56 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchpatch,
fetchPypi,
numpy,
scipy,
six,
decorator,
nose,
}:
buildPythonPackage rec {
pname = "paramz";
version = "0.9.5";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0917211c0f083f344e7f1bc997e0d713dbc147b6380bc19f606119394f820b9a";
};
patches = [
(fetchpatch {
name = "remove-deprecated-numpy-uses";
url = "https://github.com/sods/paramz/pull/38/commits/a5a0be15b12c5864b438d870b519ad17cc72cd12.patch";
hash = "sha256-vj/amEXL9QJ7VdqJmyhv/lj8n+yuiZEARQBYWw6lgBA=";
})
(fetchpatch {
name = "_raveled_index_for.patch";
url = "https://github.com/sods/paramz/pull/40/commits/dd68a81cfd28edb48354c6a9b493ef711f00fb5b.patch";
hash = "sha256-nbnW3lYJDT1WXko3Y28YyELhO0QIAA1Tx0CJ57T1Nq0=";
})
];
propagatedBuildInputs = [
numpy
scipy
six
decorator
];
nativeCheckInputs = [ nose ];
pythonImportsCheck = [ "paramz" ];
checkPhase = ''
nosetests -v paramz/tests
'';
meta = with lib; {
description = "Parameterization framework for parameterized model creation and handling";
homepage = "https://github.com/sods/paramz";
license = licenses.bsd3;
maintainers = with maintainers; [ bcdarwin ];
};
}