Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools 5, setuptools-scm 6, jaraco-classes 7, jaraco-text 8}: 9 10buildPythonPackage rec { 11 pname = "jaraco-collections"; 12 version = "4.3.0"; 13 format = "pyproject"; 14 15 src = fetchPypi { 16 pname = "jaraco.collections"; 17 inherit version; 18 hash = "sha256-dP/CP8z+5N4KLr9VajNnW2o8AD1jNZR9MSKgvIgiyOQ="; 19 }; 20 21 postPatch = '' 22 # break dependency cycle 23 sed -i "/'jaraco.text',/d" setup.cfg 24 ''; 25 26 nativeBuildInputs = [ 27 setuptools 28 setuptools-scm 29 ]; 30 31 env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 32 33 propagatedBuildInputs = [ 34 jaraco-classes 35 jaraco-text 36 ]; 37 38 pythonNamespaces = [ "jaraco" ]; 39 40 doCheck = false; 41 42 pythonImportsCheck = [ "jaraco.collections" ]; 43 44 meta = with lib; { 45 description = "Models and classes to supplement the stdlib 'collections' module"; 46 homepage = "https://github.com/jaraco/jaraco.collections"; 47 changelog = "https://github.com/jaraco/jaraco.collections/blob/v${version}/NEWS.rst"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ ]; 50 }; 51}