writers: add writeGuile[Bin] (#364531)
[NixPkgs.git] / pkgs / development / python-modules / paramz / default.nix
blob8b51490111123de20e0ae83d2b140ef6836de2dc
2   lib,
3   buildPythonPackage,
4   decorator,
5   fetchFromGitHub,
6   numpy,
7   pytestCheckHook,
8   pythonOlder,
9   scipy,
10   setuptools,
11   six,
14 buildPythonPackage rec {
15   pname = "paramz";
16   version = "0.9.6";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "sods";
23     repo = "paramz";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-SWmx70G5mm3eUmH2UIEmg5C7u9VDHiFw5aYCIr8UjPs=";
26   };
28   build-system = [ setuptools ];
30   dependencies = [
31     decorator
32     numpy
33     scipy
34     six
35   ];
37   nativeCheckInputs = [ pytestCheckHook ];
39   preCheck = ''
40     substituteInPlace paramz/tests/parameterized_tests.py \
41       --replace-fail "assertRaisesRegexp" "assertRaisesRegex"
42   '';
44   pytestFlagsArray = [
45     "paramz/tests/array_core_tests.py"
46     "paramz/tests/cacher_tests.py"
47     "paramz/tests/examples_tests.py"
48     "paramz/tests/index_operations_tests.py"
49     "paramz/tests/init_tests.py"
50     "paramz/tests/lists_and_dicts_tests.py"
51     "paramz/tests/model_tests.py"
52     "paramz/tests/observable_tests.py"
53     "paramz/tests/parameterized_tests.py"
54     "paramz/tests/pickle_tests.py"
55     "paramz/tests/verbose_optimize_tests.py"
56   ];
58   disabledTests = [
59     # TypeError: arrays to stack must be passed as a "sequence" type such as list...
60     "test_raveled_index"
61     "test_regular_expression_misc"
62   ];
64   pythonImportsCheck = [ "paramz" ];
66   meta = with lib; {
67     description = "Parameterization framework for parameterized model creation and handling";
68     homepage = "https://github.com/sods/paramz";
69     changelog = "https://github.com/sods/paramz/releases/tag/v${version}";
70     license = licenses.bsd3;
71     maintainers = with maintainers; [ bcdarwin ];
72   };