nixpkgs/pkgs/development/python-modules/audio-metadata/default.nix

44 lines
921 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, pythonOlder
, attrs
, bidict
, bitstruct
, more-itertools
, pprintpp
}:
buildPythonPackage rec {
pname = "audio-metadata";
2019-02-14 07:37:10 +00:00
version = "0.4.0";
src = fetchPypi {
inherit pname version;
2019-02-14 07:37:10 +00:00
sha256 = "a881f0f3b82752d306ac0a7850ed0e31bad275a399f63097733b4890986084b2";
};
2019-03-15 18:44:08 +00:00
postPatch = ''
substituteInPlace setup.py \
--replace "bidict>=0.17,<0.18" "bidict" \
--replace "more-itertools>=4.0,<5.0" "more-itertools"
'';
propagatedBuildInputs = [
attrs
bidict
bitstruct
more-itertools
pprintpp
];
# No tests
doCheck = false;
disabled = pythonOlder "3.6";
meta = with lib; {
homepage = https://github.com/thebigmunch/audio-metadata;
description = "A library for reading and, in the future, writing metadata from audio files";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}