Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 56 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 versioneer, 9 10 # tests 11 twisted, 12}: 13 14let 15 self = buildPythonPackage rec { 16 pname = "constantly"; 17 version = "23.10.4"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "twisted"; 22 repo = "constantly"; 23 tag = version; 24 hash = "sha256-yXPHQP4B83PuRNvDBnRTx/MaPaQxCl1g5Xrle+N/d7I="; 25 }; 26 27 nativeBuildInputs = [ 28 setuptools 29 versioneer 30 ] 31 ++ versioneer.optional-dependencies.toml; 32 33 # would create dependency loop with twisted 34 doCheck = false; 35 36 nativeCheckInputs = [ twisted ]; 37 38 checkPhase = '' 39 runHook preCheck 40 trial constantly 41 runHook postCheck 42 ''; 43 44 pythonImportsCheck = [ "constantly" ]; 45 46 passthru.tests.constantly = self.overridePythonAttrs { doCheck = true; }; 47 48 meta = { 49 description = "Module for symbolic constant support"; 50 homepage = "https://github.com/twisted/constantly"; 51 license = lib.licenses.mit; 52 maintainers = [ ]; 53 }; 54 }; 55in 56self