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