1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 setuptools,
7 versioningit,
8 attrs,
9 platformdirs,
10 tomli,
11}:
12
13buildPythonPackage rec {
14 pname = "pueblo";
15 version = "0.0.11";
16 pyproject = true;
17
18 disabled = pythonOlder "3.11";
19
20 # This tarball doesn't include tests unfortunately, and the GitHub tarball
21 # could have been an alternative, but versioningit fails to detect the
22 # version of it correctly, even with setuptools-scm and
23 # SETUPTOOLS_SCM_PRETEND_VERSION = version added. Since this is a pure Python
24 # package, we can rely on upstream to run the tests before releasing, and it
25 # should work for us as well.
26 src = fetchPypi {
27 inherit pname version;
28 hash = "sha256-IQ5NFn1EMh5oLgRlth7VWQmSyMx2/7cmC/U1VW1B4OE=";
29 };
30
31 build-system = [
32 setuptools
33 versioningit
34 ];
35
36 dependencies = [
37 attrs
38 platformdirs
39 tomli
40 ];
41
42 doCheck = false; # no tests in sdist
43
44 pythonImportsCheck = [ "pueblo" ];
45
46 meta = with lib; {
47 description = "Python toolbox library";
48 homepage = "https://github.com/pyveci/pueblo";
49 license = licenses.lgpl3Only;
50 maintainers = with maintainers; [ doronbehar ];
51 };
52}