Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / audio-metadata / default.nix
blobe9be3715ec311a30f12793f7395ec9f6de6ea4d1
2   lib,
3   attrs,
4   bidict,
5   bitstruct,
6   buildPythonPackage,
7   fetchFromGitHub,
8   fetchpatch,
9   more-itertools,
10   poetry-core,
11   pprintpp,
12   pythonOlder,
13   pythonRelaxDepsHook,
14   tbm-utils,
17 buildPythonPackage rec {
18   pname = "audio-metadata";
19   version = "0.11.1";
20   pyproject = true;
22   disabled = pythonOlder "3.7";
24   src = fetchFromGitHub {
25     owner = "thebigmunch";
26     repo = "audio-metadata";
27     rev = "refs/tags/${version}";
28     hash = "sha256-5ZX4HwbuB9ZmFfHuxaMCrn3R7/znuDsoyqqLql2Nizg=";
29   };
31   patches = [
32     # Switch to poetry-core, https://github.com/thebigmunch/audio-metadata/pull/41
33     (fetchpatch {
34       name = "switch-to-poetry-core.patch";
35       url = "https://github.com/thebigmunch/audio-metadata/commit/dfe91a69ee37e9dcefb692165eb0f9cd36a7e5b8.patch";
36       hash = "sha256-ut3mqgZQu0YFbsTEA13Ch0+aSNl17ndMV0fuIu3n5tc=";
37     })
38   ];
40   pythonRelaxDeps = [
41     "attrs"
42     "more-itertools"
43   ];
45   build-system = [ poetry-core ];
47   nativeBuildInputs = [ pythonRelaxDepsHook ];
49   dependencies = [
50     attrs
51     bidict
52     bitstruct
53     more-itertools
54     pprintpp
55     tbm-utils
56   ];
58   # Tests require ward which is not ready to be used
59   doCheck = false;
61   pythonImportsCheck = [ "audio_metadata" ];
63   meta = with lib; {
64     description = "Library for handling the metadata from audio files";
65     homepage = "https://github.com/thebigmunch/audio-metadata";
66     changelog = "https://github.com/thebigmunch/audio-metadata/blob/${version}/CHANGELOG.md";
67     license = licenses.mit;
68     maintainers = with maintainers; [ jakewaksbaum ];
69   };