nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 zope-interface, 7 zope-proxy, 8 zope-schema, 9 zope-component, 10 zope-configuration, 11 zope-copy, 12 unittestCheckHook, 13}: 14 15buildPythonPackage rec { 16 pname = "zope-location"; 17 version = "6.0"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "zopefoundation"; 22 repo = "zope.location"; 23 tag = version; 24 hash = "sha256-s7HZda+U87P62elX/KbDp2o9zAplgFVmnedDI/uq2sk="; 25 }; 26 27 postPatch = '' 28 substituteInPlace pyproject.toml \ 29 --replace-fail "setuptools ==" "setuptools >=" 30 ''; 31 32 build-system = [ setuptools ]; 33 34 dependencies = [ 35 zope-interface 36 zope-proxy 37 zope-schema 38 ]; 39 40 optional-dependencies = { 41 zcml = [ zope-configuration ]; 42 component = [ zope-component ]; 43 copy = [ zope-copy ]; 44 }; 45 46 pythonImportsCheck = [ "zope.location" ]; 47 48 nativeCheckInputs = [ unittestCheckHook ]; 49 50 unittestFlagsArray = [ "src/zope/location/tests" ]; 51 52 pythonNamespaces = [ "zope" ]; 53 54 meta = { 55 homepage = "https://github.com/zopefoundation/zope.location/"; 56 description = "Zope Location"; 57 changelog = "https://github.com/zopefoundation/zope.location/blob/${src.tag}/CHANGES.rst"; 58 license = lib.licenses.zpl21; 59 maintainers = [ ]; 60 }; 61}