python.pkgs.zetup: fix build
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
, setuptools_scm, pathpy, nbconvert
|
, setuptools_scm, pathpy, nbconvert
|
||||||
, pytest }:
|
, pytest_3 }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "zetup";
|
pname = "zetup";
|
||||||
@@ -11,11 +11,18 @@ buildPythonPackage rec {
|
|||||||
sha256 = "f1cde33d0ef3bedaf697e432201fa86da698dadd3445c0efd2a114753853c675";
|
sha256 = "f1cde33d0ef3bedaf697e432201fa86da698dadd3445c0efd2a114753853c675";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Python 3.7 compatibility
|
||||||
|
# See https://github.com/zimmermanncode/zetup/pull/1
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace zetup/zetup_config.py \
|
||||||
|
--replace "'3.6']" "'3.6', '3.7']"
|
||||||
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
py.test test
|
py.test test
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ pytest pathpy nbconvert ];
|
checkInputs = [ pytest_3 pathpy nbconvert ];
|
||||||
propagatedBuildInputs = [ setuptools_scm ];
|
propagatedBuildInputs = [ setuptools_scm ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|||||||
Reference in New Issue
Block a user