depot/third_party/nixpkgs/pkgs/development/python-modules/fasteners/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

47 lines
930 B
Nix

{
lib,
buildPythonPackage,
diskcache,
eventlet,
fetchFromGitHub,
more-itertools,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "fasteners";
version = "0.19";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "harlowja";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-XFa1ItFqkSYE940p/imWFp5e9gS6n+D1uM6Cj+Vzmmg=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [
diskcache
eventlet
more-itertools
pytestCheckHook
];
pythonImportsCheck = [ "fasteners" ];
pytestFlagsArray = [ "tests/" ];
meta = with lib; {
description = "Module that provides useful locks";
homepage = "https://github.com/harlowja/fasteners";
changelog = "https://github.com/harlowja/fasteners/releases/tag/${version}";
license = licenses.asl20;
maintainers = [ ];
};
}