biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / demes / default.nix
blob658acdb8156fd5bdaa9449a958322235ec2b6a6d
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools-scm,
6   ruamel-yaml,
7   attrs,
8   pythonOlder,
9   pytest7CheckHook,
10   pytest-xdist,
11   numpy,
14 buildPythonPackage rec {
15   pname = "demes";
16   version = "0.2.3";
17   format = "pyproject";
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-nmE7ZbR126J3vKdR3h83qJ/V602Fa6J3M6IJnIqCNhc=";
23   };
25   nativeBuildInputs = [ setuptools-scm ];
27   propagatedBuildInputs = [
28     ruamel-yaml
29     attrs
30   ];
32   postPatch = ''
33     # remove coverage arguments to pytest
34     sed -i '/--cov/d' setup.cfg
35   '';
37   nativeCheckInputs = [
38     pytest7CheckHook
39     pytest-xdist
40     numpy
41   ];
43   disabledTestPaths = [ "tests/test_spec.py" ];
45   pythonImportsCheck = [ "demes" ];
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   };