Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 filetype, 7 mutagen, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "mediafile"; 14 version = "0.13.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "beetbox"; 21 repo = "mediafile"; 22 tag = "v${version}"; 23 hash = "sha256-Knp91nVPFkE2qYSZoWcOsMBNY+OBfWCPPNn+T1L8v0o="; 24 }; 25 26 build-system = [ flit-core ]; 27 28 dependencies = [ 29 filetype 30 mutagen 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "mediafile" ]; 36 37 meta = with lib; { 38 description = "Python interface to the metadata tags for many audio file formats"; 39 homepage = "https://github.com/beetbox/mediafile"; 40 changelog = "https://github.com/beetbox/mediafile/releases/tag/${src.tag}"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ lovesegfault ]; 43 }; 44}