Skip to content

Commit fde4c4a

Browse files
authored
python313Packages.python-mimeparse: 1.6.0 -> 2.0.0 (NixOS#372091)
2 parents f9863a9 + c6706b5 commit fde4c4a

File tree

1 file changed

+15
-6
lines changed
  • pkgs/development/python-modules/python-mimeparse

1 file changed

+15
-6
lines changed

pkgs/development/python-modules/python-mimeparse/default.nix

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchPypi,
4+
fetchFromGitHub,
55
pytestCheckHook,
6+
pythonOlder,
7+
setuptools,
68
}:
79

810
buildPythonPackage rec {
911
pname = "python-mimeparse";
10-
version = "1.6.0";
11-
format = "setuptools";
12+
version = "2.0.0";
13+
pyproject = true;
1214

13-
src = fetchPypi {
14-
inherit pname version;
15-
sha256 = "76e4b03d700a641fd7761d3cd4fdbbdcd787eade1ebfac43f877016328334f78";
15+
disabled = pythonOlder "3.8";
16+
17+
src = fetchFromGitHub {
18+
owner = "falconry";
19+
repo = "python-mimeparse";
20+
tag = version;
21+
hash = "sha256-4LdfxVOioiyjeZjxCrvOELG+mJ4YOX4CUn+CXYWCtOo=";
1622
};
1723

24+
build-system = [ setuptools ];
25+
1826
nativeCheckInputs = [ pytestCheckHook ];
1927

2028
meta = with lib; {
2129
description = "Module provides basic functions for parsing mime-type names and matching them against a list of media-ranges";
2230
homepage = "https://github.com/dbtsai/python-mimeparse";
31+
changelog = "https://github.com/falconry/python-mimeparse/releases/tag/${version}";
2332
license = licenses.mit;
2433
maintainers = [ ];
2534
};

0 commit comments

Comments
 (0)