Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools-scm, 6 ruamel-yaml, 7 attrs, 8 pythonOlder, 9 pytest7CheckHook, 10 pytest-xdist, 11 numpy, 12}: 13 14buildPythonPackage rec { 15 pname = "demes"; 16 version = "0.2.3"; 17 format = "pyproject"; 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-nmE7ZbR126J3vKdR3h83qJ/V602Fa6J3M6IJnIqCNhc="; 23 }; 24 25 nativeBuildInputs = [ setuptools-scm ]; 26 27 propagatedBuildInputs = [ 28 ruamel-yaml 29 attrs 30 ]; 31 32 postPatch = '' 33 # remove coverage arguments to pytest 34 sed -i '/--cov/d' setup.cfg 35 ''; 36 37 nativeCheckInputs = [ 38 pytest7CheckHook 39 pytest-xdist 40 numpy 41 ]; 42 43 disabledTestPaths = [ "tests/test_spec.py" ]; 44 45 pythonImportsCheck = [ "demes" ]; 46 47 meta = with lib; { 48 description = "Tools for describing and manipulating demographic models"; 49 mainProgram = "demes"; 50 homepage = "https://github.com/popsim-consortium/demes-python"; 51 license = licenses.isc; 52 maintainers = with maintainers; [ alxsimon ]; 53 }; 54}