1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 nbconvert, 6 path, 7 pytestCheckHook, 8 setuptools-scm, 9 pythonAtLeast, 10}: 11 12buildPythonPackage rec { 13 pname = "zetup"; 14 version = "0.2.64"; 15 format = "setuptools"; 16 17 # https://github.com/zimmermanncode/zetup/issues/4 18 disabled = pythonAtLeast "3.10"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "b8a9bdcfa4b705d72b55b218658bc9403c157db7b57a14158253c98d03ab713d"; 23 }; 24 25 # Python > 3.7 compatibility 26 postPatch = '' 27 substituteInPlace zetup/zetup_config.py \ 28 --replace "'3.7']" "'3.7', '3.8', '3.9', '3.10']" 29 ''; 30 31 checkPhase = '' 32 py.test test -k "not TestObject" --deselect=test/test_zetup_config.py::test_classifiers 33 ''; 34 35 propagatedBuildInputs = [ setuptools-scm ]; 36 37 nativeCheckInputs = [ 38 path 39 nbconvert 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ "zetup" ]; 44 45 meta = with lib; { 46 description = "Zimmermann's Extensible Tools for Unified Project setups"; 47 homepage = "https://github.com/zimmermanncode/zetup"; 48 license = licenses.gpl3Plus; 49 platforms = platforms.unix; 50 }; 51}