File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
pkgs/development/python-modules/python-mimeparse Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 11{
22 lib ,
33 buildPythonPackage ,
4- fetchPypi ,
4+ fetchFromGitHub ,
55 pytestCheckHook ,
6+ pythonOlder ,
7+ setuptools ,
68} :
79
810buildPythonPackage 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 } ;
You can’t perform that action at this time.
0 commit comments