summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/liblp/default.nix
blob: 74a5154e4aa227cbe00a4ee0686a68749714bd3d (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
}:

buildPythonPackage rec {
  pname = "liblp";
  version = "1.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sebaubuntu-python";
    repo = "liblp";
    tag = "v${version}";
    hash = "sha256-F30D2mYUYPupbr8OsrcrN6wQ639L5OlzQw/FrxPCsC4=";
  };

  build-system = [ poetry-core ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "liblp" ];

  meta = {
    description = "Android logical partitions library ported from C++ to Python";
    homepage = "https://github.com/sebaubuntu-python/liblp";
    license = lib.licenses.asl20;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ ungeskriptet ];
    mainProgram = "lpunpack";
  };
}