Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / constantly / default.nix
blob92183fc1622c2f38e15b42bec50e3793be86b2a5
1 { lib, buildPythonPackage, fetchFromGitHub, twisted }:
3 let
4   self = buildPythonPackage rec {
5     pname = "constantly";
6     version = "15.1.0";
8     src = fetchFromGitHub {
9       owner = "twisted";
10       repo = "constantly";
11       rev = version;
12       hash = "sha256-0RPK5Vy0b6V4ubvm+vfNOAua7Qpa6j+G+QNExFuHgUU=";
13     };
15     # would create dependency loop with twisted
16     doCheck = false;
18     nativeCheckInputs = [ twisted ];
20     checkPhase = ''
21       trial constantly
22     '';
24     pythonImportsCheck = [ "constantly" ];
26     passthru.tests.constantly = self.overridePythonAttrs { doCheck = true; };
28     meta = with lib; {
29       homepage = "https://github.com/twisted/constantly";
30       description = "symbolic constant support";
31       license = licenses.mit;
32       maintainers = [ ];
33     };
34   };
36 self