1{
2 lib,
3 buildPythonPackage,
4 fetchpatch2,
5 fetchPypi,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pid";
12 version = "3.0.4";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "0e33670e83f6a33ebb0822e43a609c3247178d4a375ff50a4689e266d853eb66";
18 };
19
20 patches = [
21 # apply c9d1550ba2ee73231f8e984d75d808c8cc103748 to remove nose dependency. change is in repo, but hasn't been released on pypi.
22 (fetchpatch2 {
23 url = "https://github.com/trbs/pid/commit/c9d1550ba2ee73231f8e984d75d808c8cc103748.patch";
24 hash = "sha256-2F31LlrJku1xzmI7P+QLyUZ8CzVHx25APp88qwWkZxw=";
25 })
26 ];
27
28 build-system = [ setuptools ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 meta = with lib; {
33 description = "Pidfile featuring stale detection and file-locking";
34 homepage = "https://github.com/trbs/pid/";
35 license = licenses.asl20;
36 };
37}