Files
nixpkgs/pkgs/development/python-modules/methodtools/default.nix
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

42 lines
878 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wirerope,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "methodtools";
version = "0.4.7";
pyproject = true;
src = fetchFromGitHub {
owner = "youknowone";
repo = "methodtools";
rev = version;
hash = "sha256-Y5VdYVSb3A+32waUUoIDDGW+AhRapN71pebTTlJC0es=";
};
build-system = [ setuptools ];
dependencies = [ wirerope ];
pythonImportsCheck = [ "methodtools" ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
meta = {
description = "Expands the functools lru_cache to classes";
homepage = "https://github.com/youknowone/methodtools";
changelog = "https://github.com/youknowone/methodtools/releases/tag/${version}";
license = lib.licenses.bsd2WithViews;
maintainers = with lib.maintainers; [ pbsds ];
};
}