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

50 lines
970 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
jaraco-classes,
jaraco-text,
}:
buildPythonPackage rec {
pname = "jaraco-collections";
version = "5.2.1";
pyproject = true;
src = fetchPypi {
pname = "jaraco_collections";
inherit version;
hash = "sha256-2rgZcLrW8KtTsgdF8bAdo3km5MD81CUEaqReDY76GO0=";
};
postPatch = ''
sed -i "/coherent\.licensed/d" pyproject.toml
'';
build-system = [
setuptools
setuptools-scm
];
dependencies = [
jaraco-classes
jaraco-text
];
pythonNamespaces = [ "jaraco" ];
doCheck = false;
pythonImportsCheck = [ "jaraco.collections" ];
meta = {
description = "Models and classes to supplement the stdlib 'collections' module";
homepage = "https://github.com/jaraco/jaraco.collections";
changelog = "https://github.com/jaraco/jaraco.collections/blob/v${version}/NEWS.rst";
license = lib.licenses.mit;
maintainers = [ ];
};
}