nixpkgs/pkgs/development/python-modules/jaraco-collections/default.nix

51 lines
996 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
jaraco-classes,
jaraco-text,
}:
buildPythonPackage rec {
pname = "jaraco-collections";
version = "5.1.0";
pyproject = true;
src = fetchPypi {
pname = "jaraco_collections";
inherit version;
hash = "sha256-DkgpQJ05rRikCqZ1T+4nZ/TZcwxLpm3J34nx0nVplMI=";
};
postPatch = ''
# break dependency cycle
sed -i "/'jaraco.text',/d" setup.cfg
'';
build-system = [
setuptools
setuptools-scm
];
dependencies = [
jaraco-classes
jaraco-text
];
pythonNamespaces = [ "jaraco" ];
doCheck = false;
pythonImportsCheck = [ "jaraco.collections" ];
meta = with lib; {
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 = licenses.mit;
maintainers = [ ];
};
}