2021-04-12 07:44:32 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, karton-core
|
2022-08-06 16:32:04 +00:00
|
|
|
, unittestCheckHook
|
2023-02-09 11:24:57 +00:00
|
|
|
, pythonOlder
|
2021-04-12 07:44:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "karton-asciimagic";
|
2022-08-08 14:41:54 +00:00
|
|
|
version = "1.2.0";
|
2023-02-09 11:24:57 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-12 07:44:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CERT-Polska";
|
|
|
|
repo = pname;
|
2023-02-09 11:24:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-sY5ik9efzLBa6Fbh17Vh4q7PlwOGYjuodU9yvp/8E3k=";
|
2021-04-12 07:44:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
karton-core
|
|
|
|
];
|
|
|
|
|
2023-02-09 11:24:57 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
2021-04-12 07:44:32 +00:00
|
|
|
|
2023-02-09 11:24:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"karton.asciimagic"
|
|
|
|
];
|
2021-04-12 07:44:32 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Decoders for ascii-encoded executables for the Karton framework";
|
|
|
|
homepage = "https://github.com/CERT-Polska/karton-asciimagic";
|
2023-02-09 11:24:57 +00:00
|
|
|
changelog = "https://github.com/CERT-Polska/karton-asciimagic/releases/tag/v${version}";
|
2021-04-12 07:44:32 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|