biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / zetup / default.nix
blob5f46e398bbcb52959aa3df37949a8a835f0ec757
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   nbconvert,
6   path,
7   pytestCheckHook,
8   setuptools-scm,
9   pythonAtLeast,
12 buildPythonPackage rec {
13   pname = "zetup";
14   version = "0.2.64";
15   format = "setuptools";
17   # https://github.com/zimmermanncode/zetup/issues/4
18   disabled = pythonAtLeast "3.10";
20   src = fetchPypi {
21     inherit pname version;
22     sha256 = "b8a9bdcfa4b705d72b55b218658bc9403c157db7b57a14158253c98d03ab713d";
23   };
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   '';
31   checkPhase = ''
32     py.test test -k "not TestObject" --deselect=test/test_zetup_config.py::test_classifiers
33   '';
35   propagatedBuildInputs = [ setuptools-scm ];
37   nativeCheckInputs = [
38     path
39     nbconvert
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [ "zetup" ];
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   };