depot/third_party/nixpkgs/pkgs/development/python-modules/mediafile/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

48 lines
837 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, mutagen
, pytestCheckHook
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "mediafile";
version = "0.10.0";
format = "flit";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "beetbox";
repo = pname;
rev = "v${version}";
hash = "sha256-Sdb5Hvm4Y344msZGie4PJ88ZmFtWfc0chABtmwnEN/Y=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
mutagen
six
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"mediafile"
];
meta = with lib; {
description = "Python interface to the metadata tags for many audio file formats";
homepage = "https://github.com/beetbox/mediafile";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}