Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 49 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 zope-testrunner, 7}: 8 9buildPythonPackage rec { 10 pname = "zope-deprecation"; 11 version = "6.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "zopefoundation"; 16 repo = "zope.deprecation"; 17 tag = version; 18 hash = "sha256-N/+RtilRY/8NfhUjd/Y4T6dmZHt6PW4ofP1UE8Aj1e8="; 19 }; 20 21 postPatch = '' 22 substituteInPlace pyproject.toml \ 23 --replace-fail "setuptools ==" "setuptools >=" 24 ''; 25 26 build-system = [ setuptools ]; 27 28 nativeCheckInputs = [ zope-testrunner ]; 29 30 checkPhase = '' 31 runHook preCheck 32 33 zope-testrunner --test-path=src 34 35 runHook postCheck 36 ''; 37 38 pythonImportsCheck = [ "zope.deprecation" ]; 39 40 pythonNamespaces = [ "zope" ]; 41 42 meta = { 43 homepage = "https://github.com/zopefoundation/zope.deprecation"; 44 description = "Zope Deprecation Infrastructure"; 45 changelog = "https://github.com/zopefoundation/zope.deprecation/blob/${version}/CHANGES.rst"; 46 license = lib.licenses.zpl21; 47 maintainers = [ ]; 48 }; 49}