at master 967 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools-scm, 6 ruamel-yaml, 7 attrs, 8 pythonOlder, 9 pytest7CheckHook, 10 pytest-cov-stub, 11 pytest-xdist, 12 numpy, 13}: 14 15buildPythonPackage rec { 16 pname = "demes"; 17 version = "0.2.3"; 18 format = "pyproject"; 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-nmE7ZbR126J3vKdR3h83qJ/V602Fa6J3M6IJnIqCNhc="; 24 }; 25 26 nativeBuildInputs = [ setuptools-scm ]; 27 28 propagatedBuildInputs = [ 29 ruamel-yaml 30 attrs 31 ]; 32 33 nativeCheckInputs = [ 34 pytest7CheckHook 35 pytest-cov-stub 36 pytest-xdist 37 numpy 38 ]; 39 40 disabledTestPaths = [ "tests/test_spec.py" ]; 41 42 pythonImportsCheck = [ "demes" ]; 43 44 meta = with lib; { 45 description = "Tools for describing and manipulating demographic models"; 46 mainProgram = "demes"; 47 homepage = "https://github.com/popsim-consortium/demes-python"; 48 license = licenses.isc; 49 maintainers = with maintainers; [ ]; 50 }; 51}