nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 karton-core,
6 unittestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "karton-asciimagic";
11 version = "1.2.0";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "CERT-Polska";
16 repo = "karton-asciimagic";
17 tag = "v${version}";
18 hash = "sha256-sY5ik9efzLBa6Fbh17Vh4q7PlwOGYjuodU9yvp/8E3k=";
19 };
20
21 propagatedBuildInputs = [ karton-core ];
22
23 nativeCheckInputs = [ unittestCheckHook ];
24
25 pythonImportsCheck = [ "karton.asciimagic" ];
26
27 meta = {
28 description = "Decoders for ascii-encoded executables for the Karton framework";
29 mainProgram = "karton-asciimagic";
30 homepage = "https://github.com/CERT-Polska/karton-asciimagic";
31 changelog = "https://github.com/CERT-Polska/karton-asciimagic/releases/tag/v${version}";
32 license = with lib.licenses; [ bsd3 ];
33 maintainers = with lib.maintainers; [ fab ];
34 };
35}