1{ lib, buildPythonPackage, fetchFromGitHub, twisted }:
2
3let
4 self = buildPythonPackage rec {
5 pname = "constantly";
6 version = "15.1.0";
7
8 src = fetchFromGitHub {
9 owner = "twisted";
10 repo = "constantly";
11 rev = version;
12 hash = "sha256-0RPK5Vy0b6V4ubvm+vfNOAua7Qpa6j+G+QNExFuHgUU=";
13 };
14
15 # would create dependency loop with twisted
16 doCheck = false;
17
18 nativeCheckInputs = [ twisted ];
19
20 checkPhase = ''
21 trial constantly
22 '';
23
24 pythonImportsCheck = [ "constantly" ];
25
26 passthru.tests.constantly = self.overridePythonAttrs { doCheck = true; };
27
28 meta = with lib; {
29 homepage = "https://github.com/twisted/constantly";
30 description = "symbolic constant support";
31 license = licenses.mit;
32 maintainers = [ ];
33 };
34 };
35in
36self