2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools-scm
|
|
|
|
, pythonOlder
|
|
|
|
, msprime
|
|
|
|
, numpy
|
|
|
|
, tskit
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyslim";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.0.4";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-valAhPEVZNv/IYe85a88SGE+2/9O1omvBywz/HeeRco=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
msprime
|
|
|
|
tskit
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
|
|
|
# Requires non-packaged software SLiM
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyslim"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tools for dealing with tree sequences coming to and from SLiM";
|
|
|
|
homepage = "https://github.com/tskit-dev/pyslim";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ alxsimon ];
|
|
|
|
};
|
|
|
|
}
|