nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7 zope-testing,
8}:
9
10buildPythonPackage rec {
11 pname = "zc-lockfile";
12 version = "4.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "zopefoundation";
17 repo = "zc.lockfile";
18 tag = version;
19 hash = "sha256-74FE2KEf4RpE8Kum1zW3M7f5/pZujaZFGo6TJjqfMyw=";
20 };
21
22 postPatch = ''
23 substituteInPlace pyproject.toml \
24 --replace-fail "setuptools ==" "setuptools >="
25 '';
26
27 build-system = [ setuptools ];
28
29 pythonImportsCheck = [ "zc.lockfile" ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 zope-testing
34 ];
35
36 enabledTestPaths = [ "src/zc/lockfile/tests.py" ];
37
38 pythonNamespaces = [ "zc" ];
39
40 meta = {
41 description = "Inter-process locks";
42 homepage = "https://github.com/zopefoundation/zc.lockfile";
43 changelog = "https://github.com/zopefoundation/zc.lockfile/blob/${version}/CHANGES.rst";
44 license = lib.licenses.zpl21;
45 maintainers = [ ];
46 };
47}