depot/third_party/nixpkgs/pkgs/development/python-modules/jaraco_collections/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

50 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, setuptools-scm
, jaraco_classes
, jaraco_text
}:
buildPythonPackage rec {
pname = "jaraco.collections";
version = "4.3.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-dP/CP8z+5N4KLr9VajNnW2o8AD1jNZR9MSKgvIgiyOQ=";
};
postPatch = ''
# break dependency cycle
sed -i "/'jaraco.text',/d" setup.cfg
'';
nativeBuildInputs = [
setuptools
setuptools-scm
];
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
propagatedBuildInputs = [
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 = with maintainers; [ ];
};
}