Files
nixpkgs/pkgs/development/python-modules/jaraco-classes/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

39 lines
762 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
isPy27,
setuptools-scm,
more-itertools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "jaraco-classes";
version = "3.4.0";
format = "pyproject";
disabled = isPy27;
src = fetchFromGitHub {
owner = "jaraco";
repo = "jaraco.classes";
tag = "v${version}";
sha256 = "sha256-pXDsLKiEru+UXcEBT4/cP1u8s9vSn1Zhf7Qnwy9Zr0I=";
};
pythonNamespaces = [ "jaraco" ];
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ more-itertools ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Utility functions for Python class constructs";
homepage = "https://github.com/jaraco/jaraco.classes";
license = lib.licenses.mit;
};
}