nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "zope-cachedescriptors"; 11 version = "6.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "zopefoundation"; 16 repo = "zope.cachedescriptors"; 17 tag = version; 18 hash = "sha256-PlezUzuO4P/BOVT6Ll8dYIKssC/glmVd8SCM0afgNC0="; 19 }; 20 21 postPatch = '' 22 substituteInPlace pyproject.toml \ 23 --replace-fail "setuptools ==" "setuptools >=" 24 ''; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ setuptools ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 enabledTestPaths = [ "src/zope/cachedescriptors/tests.py" ]; 33 34 pythonImportsCheck = [ "zope.cachedescriptors" ]; 35 36 pythonNamespaces = [ "zope" ]; 37 38 meta = { 39 description = "Method and property caching decorators"; 40 homepage = "https://github.com/zopefoundation/zope.cachedescriptors"; 41 changelog = "https://github.com/zopefoundation/zope.cachedescriptors/blob/${version}/CHANGES.rst"; 42 license = lib.licenses.zpl21; 43 maintainers = with lib.maintainers; [ dotlambda ]; 44 }; 45}