depot/third_party/nixpkgs/pkgs/development/python-modules/mediafile/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

43 lines
840 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
mutagen,
pytestCheckHook,
pythonOlder,
six,
}:
buildPythonPackage rec {
pname = "mediafile";
version = "0.12.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "beetbox";
repo = pname;
rev = "v${version}";
hash = "sha256-5HHfG1hCIbM/QSXgB61yHNNWJTsuyAh6CQJ7SZhZuvo=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
mutagen
six
];
nativeCheckInputs = [ 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 ];
};
}