Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pythonOlder, 7 numpy, 8 jsonschema, 9 svgwrite, 10}: 11 12buildPythonPackage rec { 13 pname = "tskit"; 14 version = "0.5.7"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-yD+2W1tzzi+5wFoZrqNe+jJLpWyx6ZILBgKivDE+wiM="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 jsonschema 28 numpy 29 svgwrite 30 ]; 31 32 # Pypi does not include test folder and too complex to compile from GitHub source 33 # will ask upstream to include tests in pypi 34 doCheck = false; 35 36 pythonImportsCheck = [ "tskit" ]; 37 38 meta = { 39 description = "Tree sequence toolkit"; 40 mainProgram = "tskit"; 41 homepage = "https://github.com/tskit-dev/tskit"; 42 license = lib.licenses.mit; 43 maintainers = with lib.maintainers; [ alxsimon ]; 44 }; 45}