2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flit-core
|
2021-01-05 17:05:55 +00:00
|
|
|
, mutagen
|
2021-12-19 01:06:50 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-01-05 17:05:55 +00:00
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mediafile";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "0.9.0";
|
|
|
|
format = "flit";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "beetbox";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-S90BgjKXpE4kAR0mPXgacmr2A+0hrkGpHRMeuvyFNCg=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
mutagen
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"mediafile"
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-12-19 01:06:50 +00:00
|
|
|
description = "Python interface to the metadata tags for many audio file formats";
|
2021-01-05 17:05:55 +00:00
|
|
|
homepage = "https://github.com/beetbox/mediafile";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
|
|
};
|
|
|
|
}
|