blob: 3217824701b8b022180358bf3cdcb22fd6680687 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
nix-update-script,
setuptools,
pkg-config,
swig,
libcdio,
libiconv,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "pycdio";
version = "2.1.1-unstable-2024-02-26";
pyproject = true;
src = fetchFromGitHub {
owner = "rocky";
repo = "pycdio";
rev = "806c6a2eeeeb546055ce2ac9a0ae6a14ea53ae35"; # no tag for this version (yet)
hash = "sha256-bOm82mBUIaw4BGHj3Y24Fv5+RfAew+Ma1u4QENXoRiU=";
};
preConfigure = ''
patchShebangs .
'';
build-system = [ setuptools ];
nativeBuildInputs = [
pkg-config
swig
];
buildInputs = [
libcdio
libiconv
];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "test/test-*.py" ];
passthru.updateScript = nix-update-script {
extraArgs = [ "--version=branch" ];
};
meta = {
homepage = "https://www.gnu.org/software/libcdio/";
changelog = "https://github.com/rocky/pycdio/blob/${finalAttrs.src.rev}/ChangeLog";
description = "Wrapper around libcdio (CD Input and Control library)";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ sigmanificient ];
};
})
|