Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 37 lines 799 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, karton-core 5, python 6}: 7 8buildPythonPackage rec { 9 pname = "karton-asciimagic"; 10 version = "1.1.0"; 11 12 src = fetchFromGitHub { 13 owner = "CERT-Polska"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "0vj4b8man81g99g4c53zyvp1gc47c2imj5ha9r4z4bf8gs3aqsv6"; 17 }; 18 19 propagatedBuildInputs = [ 20 karton-core 21 ]; 22 23 checkPhase = '' 24 runHook preCheck 25 ${python.interpreter} -m unittest discover 26 runHook postCheck 27 ''; 28 29 pythonImportsCheck = [ "karton.asciimagic" ]; 30 31 meta = with lib; { 32 description = "Decoders for ascii-encoded executables for the Karton framework"; 33 homepage = "https://github.com/CERT-Polska/karton-asciimagic"; 34 license = with licenses; [ bsd3 ]; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}