2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
jaraco-classes,
|
|
|
|
jaraco-text,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-08-04 22:07:22 +00:00
|
|
|
pname = "jaraco-collections";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "5.0.1";
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
2023-08-04 22:07:22 +00:00
|
|
|
pname = "jaraco.collections";
|
|
|
|
inherit version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-gIYxsXS4Sk4qWSSQ1i9i38FdgEeg9xVyYJjcQ7gabPo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
postPatch = ''
|
|
|
|
# break dependency cycle
|
|
|
|
sed -i "/'jaraco.text',/d" setup.cfg
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
setuptools
|
2022-08-12 12:06:08 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-08-04 22:07:22 +00:00
|
|
|
jaraco-classes
|
|
|
|
jaraco-text
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
2020-12-03 08:41:04 +00:00
|
|
|
pythonNamespaces = [ "jaraco" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
pythonImportsCheck = [ "jaraco.collections" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Models and classes to supplement the stdlib 'collections' module";
|
|
|
|
homepage = "https://github.com/jaraco/jaraco.collections";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/jaraco/jaraco.collections/blob/v${version}/NEWS.rst";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|