Merge pull request #291184 from stalkerhumanoid/update-mediafile-0.12.0
This commit is contained in:
commit
1bb9f10451
2 changed files with 19 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mediafile";
|
pname = "mediafile";
|
||||||
version = "0.10.1";
|
version = "0.12.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||||
owner = "beetbox";
|
owner = "beetbox";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-2h17FA0GTY4R+WhZiQtPFYf6gH7XLbI3aOB/nUXFtJI=";
|
hash = "sha256-5HHfG1hCIbM/QSXgB61yHNNWJTsuyAh6CQJ7SZhZuvo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, callPackage
|
, callPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchPypi
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, python3Packages
|
, python3Packages
|
||||||
}:
|
}:
|
||||||
|
@ -17,11 +18,25 @@
|
||||||
** alternatives = { enable = true; propagatedBuildInputs = [ beetsPackages.alternatives ]; };
|
** alternatives = { enable = true; propagatedBuildInputs = [ beetsPackages.alternatives ]; };
|
||||||
** }; }
|
** }; }
|
||||||
*/
|
*/
|
||||||
lib.makeExtensible (self: {
|
let
|
||||||
|
legacyMediafilePython3Packages = python3Packages.override {
|
||||||
|
overrides = self: super: {
|
||||||
|
mediafile = super.mediafile.overridePythonAttrs (oldAttrs: rec {
|
||||||
|
version = "0.10.1";
|
||||||
|
format = "pyproject";
|
||||||
|
src = fetchPypi {
|
||||||
|
pname = "mediafile";
|
||||||
|
inherit version;
|
||||||
|
hash = "sha256-kpZCoX7lAjuQhiIc6AzcLFHQYCGokNRDOwvVvTLysp8=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in lib.makeExtensible (self: {
|
||||||
beets = self.beets-stable;
|
beets = self.beets-stable;
|
||||||
|
|
||||||
beets-stable = callPackage ./common.nix rec {
|
beets-stable = callPackage ./common.nix rec {
|
||||||
inherit python3Packages;
|
python3Packages = legacyMediafilePython3Packages;
|
||||||
# NOTE: ./builtin-plugins.nix and ./common.nix can have some conditionals
|
# NOTE: ./builtin-plugins.nix and ./common.nix can have some conditionals
|
||||||
# be removed when stable version updates
|
# be removed when stable version updates
|
||||||
version = "1.6.0";
|
version = "1.6.0";
|
||||||
|
|
Loading…
Reference in a new issue