depot/third_party/nixpkgs/pkgs/development/python-modules/mediafile/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

48 lines
848 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 ];
};
}