Skip to content

Commit

Permalink
python313Packages.python-mimeparse: 1.6.0 -> 2.0.0 (NixOS#372091)
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium authored Jan 10, 2025
2 parents f9863a9 + c6706b5 commit fde4c4a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions pkgs/development/python-modules/python-mimeparse/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:

buildPythonPackage rec {
pname = "python-mimeparse";
version = "1.6.0";
format = "setuptools";
version = "2.0.0";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "76e4b03d700a641fd7761d3cd4fdbbdcd787eade1ebfac43f877016328334f78";
disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "falconry";
repo = "python-mimeparse";
tag = version;
hash = "sha256-4LdfxVOioiyjeZjxCrvOELG+mJ4YOX4CUn+CXYWCtOo=";
};

build-system = [ setuptools ];

nativeCheckInputs = [ pytestCheckHook ];

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

0 comments on commit fde4c4a

Please sign in to comment.