2023-08-04 22:07:22 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, twisted }:
|
|
|
|
|
|
|
|
let
|
|
|
|
self = buildPythonPackage rec {
|
|
|
|
pname = "constantly";
|
|
|
|
version = "15.1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "twisted";
|
|
|
|
repo = "constantly";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-0RPK5Vy0b6V4ubvm+vfNOAua7Qpa6j+G+QNExFuHgUU=";
|
|
|
|
};
|
|
|
|
|
|
|
|
# would create dependency loop with twisted
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
nativeCheckInputs = [ twisted ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
trial constantly
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "constantly" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
passthru.tests.constantly = self.overrideAttrs (_: { doInstallCheck = true; });
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/twisted/constantly";
|
|
|
|
description = "symbolic constant support";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-08-04 22:07:22 +00:00
|
|
|
in
|
|
|
|
self
|