2021-02-17 17:02:09 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nbconvert
|
|
|
|
, pathpy
|
|
|
|
, pytestCheckHook
|
|
|
|
, setuptools-scm
|
2022-02-10 20:34:41 +00:00
|
|
|
, pythonAtLeast
|
2021-02-17 17:02:09 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zetup";
|
|
|
|
version = "0.2.64";
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
# https://github.com/zimmermanncode/zetup/issues/4
|
|
|
|
disabled = pythonAtLeast "3.10";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "b8a9bdcfa4b705d72b55b218658bc9403c157db7b57a14158253c98d03ab713d";
|
|
|
|
};
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
# Python > 3.7 compatibility
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace zetup/zetup_config.py \
|
2021-02-17 17:02:09 +00:00
|
|
|
--replace "'3.7']" "'3.7', '3.8', '3.9', '3.10']"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test test -k "not TestObject" --deselect=test/test_zetup_config.py::test_classifiers
|
|
|
|
'';
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
propagatedBuildInputs = [ setuptools-scm ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pathpy
|
|
|
|
nbconvert
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "zetup" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Zimmermann's Extensible Tools for Unified Project setups";
|
|
|
|
homepage = "https://github.com/zimmermanncode/zetup";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|