nixpkgs/pkgs/development/python-modules/jaraco-collections/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

50 lines
1023 B
Nix

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