1{ lib, buildPythonPackage, fetchPypi
2, setuptools_scm, pathpy, nbconvert
3, pytest }:
4
5buildPythonPackage rec {
6 pname = "zetup";
7 version = "0.2.64";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "b8a9bdcfa4b705d72b55b218658bc9403c157db7b57a14158253c98d03ab713d";
12 };
13
14 # Python 3.8 compatibility
15 postPatch = ''
16 substituteInPlace zetup/zetup_config.py \
17 --replace "'3.7']" "'3.7', '3.8']"
18 '';
19
20 checkPhase = ''
21 py.test test -k "not TestObject" --deselect=test/test_zetup_config.py::test_classifiers
22 '';
23
24 checkInputs = [ pytest pathpy nbconvert ];
25 propagatedBuildInputs = [ setuptools_scm ];
26
27 meta = with lib; {
28 description = "Zimmermann's Extensible Tools for Unified Project setups";
29 homepage = "https://github.com/zimmermanncode/zetup";
30 license = licenses.gpl3Plus;
31 platforms = platforms.unix;
32 };
33}