Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, pytest 5}: 6 7buildPythonPackage rec { 8 pname = "py-cpuinfo"; 9 version = "4.0.0"; 10 11 src = fetchFromGitHub { 12 owner = "workhorsy"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "1pp561lj80jnvr2038nrzhmks2akxsbdqxvfrqa6n340x81981lm"; 16 }; 17 18 checkInputs = [ 19 pytest 20 ]; 21 22 checkPhase = '' 23 runHook preCheck 24 pytest -k "not TestActual" 25 runHook postCheck 26 ''; 27 28 meta = { 29 description = "Get CPU info with pure Python 2 & 3"; 30 homepage = https://github.com/workhorsy/py-cpuinfo; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ costrouc ]; 33 }; 34}