nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 43 lines 985 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "zope-dottedname"; 11 version = "7.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "zopefoundation"; 16 repo = "zope.dottedname"; 17 tag = version; 18 hash = "sha256-bWURUr+BCQsMNBYqJD2+YPdfA+FWrJuBGypQ/c8w6kA="; 19 }; 20 21 postPatch = '' 22 substituteInPlace pyproject.toml \ 23 --replace-fail "setuptools ==" "setuptools >=" 24 ''; 25 26 build-system = [ setuptools ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 enabledTestPaths = [ "src/zope/dottedname/tests.py" ]; 31 32 pythonImportsCheck = [ "zope.dottedname" ]; 33 34 pythonNamespaces = [ "zope" ]; 35 36 meta = { 37 homepage = "https://github.com/zopefoundation/zope.dottedname"; 38 description = "Resolver for Python dotted names"; 39 changelog = "https://github.com/zopefoundation/zope.dottedname/blob/${version}/CHANGES.rst"; 40 license = lib.licenses.zpl21; 41 maintainers = [ ]; 42 }; 43}