mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-23 08:21:26 +08:00
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>
42 lines
878 B
Nix
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 ];
|
|
};
|
|
}
|