mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 13:13:09 +00:00
python310Packages.demesdraw: init at version 0.4.0
Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
This commit is contained in:
parent
70eb0c17be
commit
81b55891f7
63
pkgs/development/python-modules/demesdraw/default.nix
Normal file
63
pkgs/development/python-modules/demesdraw/default.nix
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, setuptools-scm
|
||||||
|
, demes
|
||||||
|
, matplotlib
|
||||||
|
, numpy
|
||||||
|
, scipy
|
||||||
|
, pythonOlder
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-xdist
|
||||||
|
, mpmath
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "demesdraw";
|
||||||
|
version = "0.4.0";
|
||||||
|
format = "pyproject";
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
hash = "sha256-n7dz+kYf2yyr66TBx452W6z4qT6bT81u0J4aMAYuGCc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
demes
|
||||||
|
matplotlib
|
||||||
|
numpy
|
||||||
|
scipy
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# remove coverage arguments to pytest
|
||||||
|
sed -i '/--cov/d' setup.cfg
|
||||||
|
'';
|
||||||
|
|
||||||
|
# This variable is needed to suppress the "Trace/BPT trap: 5" error in Darwin's checkPhase.
|
||||||
|
# Not sure of the details, but we can avoid it by changing the matplotlib backend during testing.
|
||||||
|
env.MPLBACKEND = lib.optionalString stdenv.isDarwin "Agg";
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
pytest-xdist
|
||||||
|
mpmath
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"demesdraw"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Drawing functions for Demes demographic models";
|
||||||
|
homepage = "https://github.com/grahamgower/demesdraw";
|
||||||
|
license = licenses.isc;
|
||||||
|
maintainers = with maintainers; [ alxsimon ];
|
||||||
|
};
|
||||||
|
}
|
@ -2503,6 +2503,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
demes = callPackage ../development/python-modules/demes { };
|
demes = callPackage ../development/python-modules/demes { };
|
||||||
|
|
||||||
|
demesdraw = callPackage ../development/python-modules/demesdraw { };
|
||||||
|
|
||||||
demetriek = callPackage ../development/python-modules/demetriek { };
|
demetriek = callPackage ../development/python-modules/demetriek { };
|
||||||
|
|
||||||
demjson3 = callPackage ../development/python-modules/demjson3 { };
|
demjson3 = callPackage ../development/python-modules/demjson3 { };
|
||||||
|
Loading…
Reference in New Issue
Block a user