Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 992 B view raw
1{ lib, buildPythonPackage, fetchpatch, fetchPypi, numpy, scipy, six, decorator, nose }: 2 3buildPythonPackage rec { 4 pname = "paramz"; 5 version = "0.9.5"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "0917211c0f083f344e7f1bc997e0d713dbc147b6380bc19f606119394f820b9a"; 10 }; 11 12 patches = [ 13 (fetchpatch { 14 name = "remove-deprecated-numpy-uses"; 15 url = "https://github.com/sods/paramz/pull/38/commits/a5a0be15b12c5864b438d870b519ad17cc72cd12.patch"; 16 hash = "sha256-vj/amEXL9QJ7VdqJmyhv/lj8n+yuiZEARQBYWw6lgBA="; 17 }) 18 ]; 19 20 propagatedBuildInputs = [ numpy scipy six decorator ]; 21 nativeCheckInputs = [ nose ]; 22 23 pythonImportsCheck = [ "paramz" ]; 24 25 checkPhase = '' 26 nosetests -v paramz/tests 27 ''; 28 29 meta = with lib; { 30 description = "Parameterization framework for parameterized model creation and handling"; 31 homepage = "https://github.com/sods/paramz"; 32 license = licenses.bsd3; 33 maintainers = with maintainers; [ bcdarwin ]; 34 }; 35}