Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pytaglib / default.nix
blob0b57dce5ec1a8aa2a2dd7254fa44f578718e48ee
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , taglib
5 , cython
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "pytaglib";
12   version = "2.0.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "supermihi";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-CEpyRxC9d7EuxupMQaX7WUCZ7lhyE6LhQY7Koe0NJ1A=";
22   };
24   buildInputs = [
25     cython
26     taglib
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   pythonImportsCheck = [
34     "taglib"
35   ];
37   meta = with lib; {
38     description = "Python bindings for the Taglib audio metadata library";
39     homepage = "https://github.com/supermihi/pytaglib";
40     changelog = "https://github.com/supermihi/pytaglib/blob/v${version}/CHANGELOG.md";
41     license = licenses.gpl3Plus;
42     maintainers = with maintainers; [ mrkkrp ];
43   };