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