fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
versioningit,
|
|
platformdirs,
|
|
}:
|
|
|
|
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 = [
|
|
# contextlib-chdir
|
|
# importlib-metadata
|
|
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 ];
|
|
};
|
|
}
|