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