2020-03-28 02:59:43 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2017-08-29 07:31:45 +01:00
|
|
|
, setuptools_scm, pathpy, nbconvert
|
2019-07-13 10:21:00 +01:00
|
|
|
, pytest }:
|
2017-08-29 07:31:45 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zetup";
|
2019-10-16 10:43:17 +01:00
|
|
|
version = "0.2.64";
|
2017-08-29 07:31:45 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 10:43:17 +01:00
|
|
|
sha256 = "b8a9bdcfa4b705d72b55b218658bc9403c157db7b57a14158253c98d03ab713d";
|
2017-08-29 07:31:45 +01:00
|
|
|
};
|
|
|
|
|
2020-03-28 02:59:43 +00:00
|
|
|
# Python 3.8 compatibility
|
2019-03-15 20:32:03 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace zetup/zetup_config.py \
|
2020-03-28 02:59:43 +00:00
|
|
|
--replace "'3.7']" "'3.7', '3.8']"
|
2019-03-15 20:32:03 +00:00
|
|
|
'';
|
|
|
|
|
2017-08-29 07:31:45 +01:00
|
|
|
checkPhase = ''
|
2019-07-13 10:21:00 +01:00
|
|
|
py.test test -k "not TestObject" --deselect=test/test_zetup_config.py::test_classifiers
|
2017-08-29 07:31:45 +01:00
|
|
|
'';
|
|
|
|
|
2019-07-13 10:21:00 +01:00
|
|
|
checkInputs = [ pytest pathpy nbconvert ];
|
2017-08-29 07:31:45 +01:00
|
|
|
propagatedBuildInputs = [ setuptools_scm ];
|
|
|
|
|
2020-03-28 02:59:43 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Zimmermann's Extensible Tools for Unified Project setups";
|
|
|
|
homepage = "https://github.com/zimmermanncode/zetup";
|
2017-08-29 07:31:45 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2017-08-29 07:31:45 +01:00
|
|
|
};
|
|
|
|
}
|