Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 58 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, stdenv, buildPythonPackage, fetchPypi, setuptools-scm, demes, matplotlib, numpy, scipy, pythonOlder, pytestCheckHook, pytest-cov-stub, 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 ];
# 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 = with lib; { description = "Drawing functions for Demes demographic models"; mainProgram = "demesdraw"; homepage = "https://github.com/grahamgower/demesdraw"; license = licenses.isc; maintainers = with maintainers; [ alxsimon ]; };}