depot/third_party/nixpkgs/pkgs/development/python-modules/littleutils/default.nix

39 lines
803 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "littleutils";
version = "0.2.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-x4NbAQIM7ULikRGLfXj7FrwtmhtPP0LzyzeHu02lPRk=";
};
build-system = [
setuptools
setuptools-scm
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "littleutils" ];
meta = with lib; {
description = "Small collection of Python utility functions";
homepage = "https://github.com/alexmojaki/littleutils";
changelog = "https://github.com/alexmojaki/littleutils/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}