mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 21:24:03 +00:00
![Martin Weinelt](/assets/img/avatar_default.png)
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.
50 lines
1023 B
Nix
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; [ ];
|
|
};
|
|
}
|