2021-04-12 18:23:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, karton-core
|
2022-09-09 14:08:57 +00:00
|
|
|
, unittestCheckHook
|
2023-02-16 17:41:37 +00:00
|
|
|
, pythonOlder
|
2021-04-12 18:23:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "karton-asciimagic";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.2.0";
|
2023-02-16 17:41:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CERT-Polska";
|
|
|
|
repo = pname;
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-sY5ik9efzLBa6Fbh17Vh4q7PlwOGYjuodU9yvp/8E3k=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
karton-core
|
|
|
|
];
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
2021-04-12 18:23:04 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"karton.asciimagic"
|
|
|
|
];
|
2021-04-12 18:23:04 +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-16 17:41:37 +00:00
|
|
|
changelog = "https://github.com/CERT-Polska/karton-asciimagic/releases/tag/v${version}";
|
2021-04-12 18:23:04 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|