nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, flit-core
5, mutagen
6, pytestCheckHook
7, pythonOlder
8, six
9}:
10
11buildPythonPackage rec {
12 pname = "mediafile";
13 version = "0.9.0";
14 format = "flit";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "beetbox";
20 repo = pname;
21 rev = "v${version}";
22 sha256 = "sha256-S90BgjKXpE4kAR0mPXgacmr2A+0hrkGpHRMeuvyFNCg=";
23 };
24
25 nativeBuildInputs = [
26 flit-core
27 ];
28
29 propagatedBuildInputs = [
30 mutagen
31 six
32 ];
33
34 checkInputs = [
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [
39 "mediafile"
40 ];
41
42 meta = with lib; {
43 description = "Python interface to the metadata tags for many audio file formats";
44 homepage = "https://github.com/beetbox/mediafile";
45 license = licenses.mit;
46 maintainers = with maintainers; [ lovesegfault ];
47 };
48}