pythonPackages.python_mineparse: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-28 11:29:16 -04:00
parent 52492477a6
commit 8d26762f19
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 25 additions and 19 deletions

View File

@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "python-mimeparse";
version = "0.1.4";
src = fetchPypi {
inherit pname version;
sha256 = "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w";
};
# error: invalid command 'test'
doCheck = false;
meta = with stdenv.lib; {
description = "A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges";
homepage = https://code.google.com/p/mimeparse/;
license = licenses.mit;
};
}

View File

@ -3961,25 +3961,7 @@ in {
transitions = callPackage ../development/python-modules/transitions { };
python_mimeparse = buildPythonPackage rec {
name = "python-mimeparse-${version}";
version = "0.1.4";
src = pkgs.fetchurl {
url = "mirror://pypi/p/python-mimeparse/${name}.tar.gz";
sha256 = "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w";
};
# error: invalid command 'test'
doCheck = false;
meta = {
description = "A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges";
homepage = https://code.google.com/p/mimeparse/;
license = licenses.mit;
};
};
python_mimeparse = callPackage ../development/python-modules/python_mimeparse { };
extras = callPackage ../development/python-modules/extras { };