Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 44 lines 1.3 kB view raw
1{ buildPythonPackage 2, enum34 3, fetchpatch 4, fetchPypi 5, isPy27 6, lib 7, mutagen 8, six 9}: 10 11buildPythonPackage rec { 12 pname = "mediafile"; 13 version = "0.6.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-o/tSAHu8FTr6LZoMHvegr9uCZovNLHS9KkP2U9y4uko="; 18 }; 19 20 propagatedBuildInputs = [ mutagen six ] ++ lib.optional isPy27 enum34; 21 22 # NB: Remove in the next release 23 patches = [ 24 (fetchpatch { 25 url = "https://github.com/beetbox/mediafile/commit/0ff753d493a1a7f406cb3378545ffe2c85a9afa3.patch"; 26 sha256 = "sha256-AQ7YedoYPmLqt4a/odgghIKOY61i9YfA0To0RVFqlk8="; 27 }) 28 (fetchpatch { 29 url = "https://github.com/beetbox/mediafile/commit/f0fb4e5111d9dfaa3b38d196ec41fcd237d97953.patch"; 30 sha256 = "sha256-5O6RiAqkQEz3Bvqjwwv/LOS33nSIBnT2H/vasGGVrpI="; 31 }) 32 (fetchpatch { 33 url = "https://github.com/beetbox/mediafile/commit/d2fc3b59f77c515b02dfe7ad936f89264375d2b4.patch"; 34 sha256 = "sha256-SMH0XhCaKLDNB4M8VmZWfGuuelfY5xladZyQYtXtP18="; 35 }) 36 ]; 37 38 meta = with lib; { 39 description = "MediaFile is a simple interface to the metadata tags for many audio file formats."; 40 homepage = "https://github.com/beetbox/mediafile"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ lovesegfault ]; 43 }; 44}