python3Packages.perfplot: 0.5.0 -> 0.8.4, fixing build
This commit is contained in:
parent
5b66067eb9
commit
50d4da34db
@ -1,30 +1,35 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, dufte
|
||||
, matplotlib
|
||||
, numpy
|
||||
, pipdate
|
||||
, tqdm
|
||||
, rich
|
||||
, pytest
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "perfplot";
|
||||
version = "0.5.0";
|
||||
version = "0.8.4";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nschloe";
|
||||
repo = "perfplot";
|
||||
rev = "v${version}";
|
||||
sha256 = "16aj5ryjic1k3qn8xhpw6crczvxcs691vs5kv4pvb1zdx69g1xbv";
|
||||
sha256 = "0avb0inx8qh8ss3j460v3z6mmn863hswa3bl19vkh475ndsjwmp0";
|
||||
};
|
||||
format = "pyproject";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dufte
|
||||
matplotlib
|
||||
numpy
|
||||
pipdate
|
||||
rich
|
||||
tqdm
|
||||
];
|
||||
|
||||
@ -33,7 +38,10 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
HOME=$(mktemp -d) pytest test/perfplot_test.py
|
||||
export HOME=$TMPDIR
|
||||
mkdir -p $HOME/.matplotlib
|
||||
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
|
||||
pytest test/perfplot_test.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user