Merge: matrix-synapse: 1.122.0 -> 1.123.0 (#378018)
[NixPkgs.git] / pkgs / development / python-modules / pueblo / default.nix
blob2c5d4690d40152ae6185db929f45c58502b52893
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools,
6   versioningit,
7   platformdirs,
8 }:
10 buildPythonPackage rec {
11   pname = "pueblo";
12   version = "0.0.10";
13   pyproject = true;
15   # This tarball doesn't include tests unfortuneatly, and the GitHub tarball
16   # could have been an alternative, but versioningit fails to detect the
17   # version of it correctly, even with setuptools-scm and
18   # SETUPTOOLS_SCM_PRETEND_VERSION = version added. Since this is a pure Python
19   # package, we can rely on upstream to run the tests before releasing, and it
20   # should work for us as well.
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-7uFLlApTR58KiV7yRydo37RsVE4QPvTbjgYNEG64mUo=";
24   };
26   nativeBuildInputs = [
27     setuptools
28     versioningit
29   ];
31   propagatedBuildInputs = [
32     #  contextlib-chdir
33     #  importlib-metadata
34     platformdirs
35   ];
37   pythonImportsCheck = [ "pueblo" ];
39   meta = with lib; {
40     description = "Pueblo - a Python toolbox library";
41     homepage = "https://pypi.org/project/pueblo/";
42     license = licenses.lgpl3Only;
43     maintainers = with maintainers; [ doronbehar ];
44   };