2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
versioningit,
|
|
|
|
platformdirs,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pueblo";
|
|
|
|
version = "0.0.9";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
# This tarball doesn't include tests unfortuneatly, and the GitHub tarball
|
|
|
|
# could have been an alternative, but versioningit fails to detect the
|
|
|
|
# version of it correctly, even with setuptools-scm and
|
|
|
|
# SETUPTOOLS_SCM_PRETEND_VERSION = version added. Since this is a pure Python
|
|
|
|
# package, we can rely on upstream to run the tests before releasing, and it
|
|
|
|
# should work for us as well.
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-Ea5tzutZtuf1a5s46JJND6ovKi3C5UruR8e1RZucPRc=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
versioningit
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-06-05 15:53:02 +00:00
|
|
|
# contextlib-chdir
|
|
|
|
# importlib-metadata
|
2024-04-21 15:54:59 +00:00
|
|
|
platformdirs
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pueblo" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pueblo - a Python toolbox library";
|
|
|
|
homepage = "https://pypi.org/project/pueblo/";
|
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
};
|
|
|
|
}
|