Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / paramz / default.nix
blob1f2ddb3d8cfd757b16d32c549e7c59d0d0dfbe81
1 { lib, buildPythonPackage, fetchpatch, fetchPypi, numpy, scipy, six, decorator, nose }:
3 buildPythonPackage rec {
4   pname = "paramz";
5   version = "0.9.5";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "0917211c0f083f344e7f1bc997e0d713dbc147b6380bc19f606119394f820b9a";
10   };
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     (fetchpatch {
19       name = "_raveled_index_for.patch";
20       url = "https://github.com/sods/paramz/pull/40/commits/dd68a81cfd28edb48354c6a9b493ef711f00fb5b.patch";
21       hash = "sha256-nbnW3lYJDT1WXko3Y28YyELhO0QIAA1Tx0CJ57T1Nq0=";
22     })
23   ];
25   propagatedBuildInputs = [ numpy scipy six decorator ];
26   nativeCheckInputs = [ nose ];
28   pythonImportsCheck = [ "paramz" ];
30   checkPhase = ''
31       nosetests -v paramz/tests
32   '';
34   meta = with lib; {
35     description = "Parameterization framework for parameterized model creation and handling";
36     homepage = "https://github.com/sods/paramz";
37     license = licenses.bsd3;
38     maintainers = with maintainers; [ bcdarwin ];
39   };