at master 1.7 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 decorator, 5 fetchFromGitHub, 6 numpy, 7 pytestCheckHook, 8 pythonOlder, 9 scipy, 10 setuptools, 11 six, 12}: 13 14buildPythonPackage rec { 15 pname = "paramz"; 16 version = "0.9.6"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "sods"; 23 repo = "paramz"; 24 tag = "v${version}"; 25 hash = "sha256-SWmx70G5mm3eUmH2UIEmg5C7u9VDHiFw5aYCIr8UjPs="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 decorator 32 numpy 33 scipy 34 six 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 preCheck = '' 40 substituteInPlace paramz/tests/parameterized_tests.py \ 41 --replace-fail "assertRaisesRegexp" "assertRaisesRegex" 42 ''; 43 44 enabledTestPaths = [ 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 ]; 57 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 ]; 63 64 pythonImportsCheck = [ "paramz" ]; 65 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 }; 73}