Files
nixpkgs/pkgs/development/python-modules/demes/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
943 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools-scm,
ruamel-yaml,
attrs,
pythonOlder,
pytest7CheckHook,
pytest-cov-stub,
pytest-xdist,
numpy,
}:
buildPythonPackage rec {
pname = "demes";
version = "0.2.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-nmE7ZbR126J3vKdR3h83qJ/V602Fa6J3M6IJnIqCNhc=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
ruamel-yaml
attrs
];
nativeCheckInputs = [
pytest7CheckHook
pytest-cov-stub
pytest-xdist
numpy
];
disabledTestPaths = [ "tests/test_spec.py" ];
pythonImportsCheck = [ "demes" ];
meta = {
description = "Tools for describing and manipulating demographic models";
mainProgram = "demes";
homepage = "https://github.com/popsim-consortium/demes-python";
license = lib.licenses.isc;
maintainers = [ ];
};
}