diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/karton-asciimagic/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/karton-asciimagic/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/karton-asciimagic/default.nix b/nixpkgs/pkgs/development/python-modules/karton-asciimagic/default.nix new file mode 100644 index 000000000000..ffed577e7222 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/karton-asciimagic/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, karton-core +, unittestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "karton-asciimagic"; + version = "1.2.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "CERT-Polska"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-sY5ik9efzLBa6Fbh17Vh4q7PlwOGYjuodU9yvp/8E3k="; + }; + + propagatedBuildInputs = [ + karton-core + ]; + + nativeCheckInputs = [ + unittestCheckHook + ]; + + pythonImportsCheck = [ + "karton.asciimagic" + ]; + + meta = with lib; { + description = "Decoders for ascii-encoded executables for the Karton framework"; + mainProgram = "karton-asciimagic"; + homepage = "https://github.com/CERT-Polska/karton-asciimagic"; + changelog = "https://github.com/CERT-Polska/karton-asciimagic/releases/tag/v${version}"; + license = with licenses; [ bsd3 ]; + maintainers = with maintainers; [ fab ]; + }; +} |