forked from mirrors/nixpkgs
38 lines
798 B
Nix
38 lines
798 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, karton-core
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "karton-asciimagic";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CERT-Polska";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-sY5ik9efzLBa6Fbh17Vh4q7PlwOGYjuodU9yvp/8E3k=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
karton-core
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
${python.interpreter} -m unittest discover
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "karton.asciimagic" ];
|
|
|
|
meta = with lib; {
|
|
description = "Decoders for ascii-encoded executables for the Karton framework";
|
|
homepage = "https://github.com/CERT-Polska/karton-asciimagic";
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|