Files
nixpkgs/pkgs/development/python-modules/fasteners/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
915 B
Nix

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