summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/apple-compress/default.nix
blob: 6f1f074a639ecc5afae0c3e88cdc79cc8e7bb84e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  buildPythonPackage,
  click,
  fetchFromGitHub,
  lib,
  loguru,
  poetry-core,
}:

buildPythonPackage rec {
  pname = "apple-compress";
  version = "0.2.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "m1stadev";
    repo = "apple-compress";
    tag = "v${version}";
    hash = "sha256-uM5HFkhvzAIfdAglPUvJfckngjUPSZqydyVcPcdtyfs=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    click
    loguru
  ];

  pythonImportsCheck = [ "apple_compress" ];

  # upstream has no tests
  doCheck = false;

  meta = {
    changelog = "https://github.com/m1stadev/apple-compress/releases/tag/${src.tag}";
    description = "Python bindings for Apple's libcompression";
    homepage = "https://github.com/m1stadev/apple-compress";
    license = lib.licenses.mit;
    mainProgram = "acompress";
    maintainers = [ lib.maintainers.dotlambda ];
    platforms = lib.platforms.darwin;
  };
}