depot/third_party/nixpkgs/pkgs/development/python-modules/pyslim/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

42 lines
802 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools-scm,
pythonOlder,
msprime,
numpy,
tskit,
}:
buildPythonPackage rec {
pname = "pyslim";
version = "1.0.4";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-valAhPEVZNv/IYe85a88SGE+2/9O1omvBywz/HeeRco=";
};
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 ];
};
}