biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / constantly / default.nix
blob89c328325499b627fda5c5e2a6fe9f4248f77774
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
7   # build-system
8   setuptools,
9   versioneer,
11   # tests
12   twisted,
15 let
16   self = buildPythonPackage rec {
17     pname = "constantly";
18     version = "23.10.4";
19     pyproject = true;
21     disabled = pythonOlder "3.8";
23     src = fetchFromGitHub {
24       owner = "twisted";
25       repo = "constantly";
26       rev = "refs/tags/${version}";
27       hash = "sha256-yXPHQP4B83PuRNvDBnRTx/MaPaQxCl1g5Xrle+N/d7I=";
28     };
30     nativeBuildInputs = [
31       setuptools
32       versioneer
33     ] ++ versioneer.optional-dependencies.toml;
35     # would create dependency loop with twisted
36     doCheck = false;
38     nativeCheckInputs = [ twisted ];
40     checkPhase = ''
41       runHook preCheck
42       trial constantly
43       runHook postCheck
44     '';
46     pythonImportsCheck = [ "constantly" ];
48     passthru.tests.constantly = self.overridePythonAttrs { doCheck = true; };
50     meta = with lib; {
51       description = "Module for symbolic constant support";
52       homepage = "https://github.com/twisted/constantly";
53       license = licenses.mit;
54       maintainers = [ ];
55     };
56   };
58 self