python3Packages.perfplot: 0.5.0 -> 0.8.4, fixing build
This commit is contained in:
parent
5b66067eb9
commit
50d4da34db
@ -1,30 +1,35 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, dufte
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, numpy
|
, numpy
|
||||||
, pipdate
|
, pipdate
|
||||||
, tqdm
|
, tqdm
|
||||||
|
, rich
|
||||||
, pytest
|
, pytest
|
||||||
, isPy27
|
, isPy27
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "perfplot";
|
pname = "perfplot";
|
||||||
version = "0.5.0";
|
version = "0.8.4";
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nschloe";
|
owner = "nschloe";
|
||||||
repo = "perfplot";
|
repo = "perfplot";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "16aj5ryjic1k3qn8xhpw6crczvxcs691vs5kv4pvb1zdx69g1xbv";
|
sha256 = "0avb0inx8qh8ss3j460v3z6mmn863hswa3bl19vkh475ndsjwmp0";
|
||||||
};
|
};
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
dufte
|
||||||
matplotlib
|
matplotlib
|
||||||
numpy
|
numpy
|
||||||
pipdate
|
pipdate
|
||||||
|
rich
|
||||||
tqdm
|
tqdm
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -33,7 +38,10 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
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; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user