blob: 2e23a766570a5f31b57cb1bef100efd4af40142c (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
openssl,
pkg-config,
pytestCheckHook,
rustPlatform,
}:
let
cargoLockPatch = (
fetchpatch {
name = "cargo.lock.patch";
url = "https://github.com/KyokoMiki/pycambia/commit/00446e13c20a461c323b119e16f3f57489ba662d.patch";
hash = "sha256-N7F67VRxfndoN8NllmGKEePOh3mgbjlNaToUvxh+IrE=";
}
);
in
buildPythonPackage rec {
pname = "pycambia";
version = "0.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "KyokoMiki";
repo = "pycambia";
tag = version;
hash = "sha256-ZflLy6Qa4tBlPZkTya3ELu463qcnRcMS57a6FfHpSNE=";
};
patches = [ cargoLockPatch ];
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
hash = "sha256-jmdf+Idg9PR4jgZ7bexPsAyGj86vGxLseTWXnhzP7+E=";
patches = [ cargoLockPatch ];
};
buildInputs = [ openssl ];
nativeBuildInputs = [
pkg-config
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cambia" ];
meta = {
description = "Python wrapper for compact disc ripper log checking utility cambia";
homepage = "https://github.com/KyokoMiki/pycambia";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ undefined-landmark ];
};
}
|