Files
nixpkgs/pkgs/development/python-modules/demesdraw/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

57 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
setuptools-scm,
demes,
matplotlib,
numpy,
scipy,
pytestCheckHook,
pytest-cov-stub,
pytest-xdist,
mpmath,
}:
buildPythonPackage rec {
pname = "demesdraw";
version = "0.4.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-sPxdSXWRh6qnUKmP9g/AghOX5Ydrxv2Le2iadefQDws=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
demes
matplotlib
numpy
scipy
];
# 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.hostPlatform.isDarwin "Agg";
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
pytest-xdist
mpmath
];
pythonImportsCheck = [ "demesdraw" ];
meta = {
description = "Drawing functions for Demes demographic models";
mainProgram = "demesdraw";
homepage = "https://github.com/grahamgower/demesdraw";
license = lib.licenses.isc;
maintainers = [ ];
};
}