2017-08-29 07:31:45 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, setuptools_scm, pathpy, nbconvert
|
2019-03-15 20:32:03 +00:00
|
|
|
, pytest_3 }:
|
2017-08-29 07:31:45 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zetup";
|
2019-04-16 18:15:42 +01:00
|
|
|
version = "0.2.48";
|
2017-08-29 07:31:45 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-16 18:15:42 +01:00
|
|
|
sha256 = "41af61e8e103656ee633f89ff67d6a94848b9b9a836d351bb813b87a139a7c46";
|
2017-08-29 07:31:45 +01:00
|
|
|
};
|
|
|
|
|
2019-03-15 20:32:03 +00:00
|
|
|
# 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']"
|
|
|
|
'';
|
|
|
|
|
2017-08-29 07:31:45 +01:00
|
|
|
checkPhase = ''
|
|
|
|
py.test test
|
|
|
|
'';
|
|
|
|
|
2019-03-15 20:32:03 +00:00
|
|
|
checkInputs = [ pytest_3 pathpy nbconvert ];
|
2017-08-29 07:31:45 +01:00
|
|
|
propagatedBuildInputs = [ setuptools_scm ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = ''
|
|
|
|
Zimmermann's Extensible Tools for Unified Project setups
|
|
|
|
'';
|
|
|
|
homepage = https://github.com/zimmermanncode/zetup;
|
|
|
|
license = licenses.gpl3Plus;
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2017-08-29 07:31:45 +01:00
|
|
|
};
|
|
|
|
}
|