Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34077 from NixOS/python-unstable
Python: package updates and fixes
- Loading branch information
Showing
101 changed files
with
833 additions
and
605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ stdenv, pythonPackages, notmuch }: | ||
|
||
pythonPackages.buildPythonApplication rec { | ||
pname = "afew"; | ||
version = "1.2.0"; | ||
|
||
src = pythonPackages.fetchPypi { | ||
inherit pname version; | ||
sha256 = "121w7bd53xyibllxxbfykjj76n81kn1vgjqd22izyh67y8qyyk5r"; | ||
}; | ||
|
||
buildInputs = with pythonPackages; [ setuptools_scm ]; | ||
|
||
propagatedBuildInputs = with pythonPackages; [ | ||
pythonPackages.notmuch chardet | ||
] ++ stdenv.lib.optional (!pythonPackages.isPy3k) subprocess32; | ||
|
||
makeWrapperArgs = [ | ||
''--prefix PATH ':' "${notmuch}/bin"'' | ||
]; | ||
|
||
meta = with stdenv.lib; { | ||
homepage = https://github.com/afewmail/afew; | ||
description = "An initial tagging script for notmuch mail"; | ||
license = licenses.isc; | ||
maintainers = with maintainers; [ garbas andir flokli ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, pytest | ||
, pytestrunner | ||
, six | ||
, html5lib | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "bleach"; | ||
version = "2.1.2"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "38fc8cbebea4e787d8db55d6f324820c7f74362b70db9142c1ac7920452d1a19"; | ||
}; | ||
|
||
checkInputs = [ pytest pytestrunner ]; | ||
propagatedBuildInputs = [ six html5lib ]; | ||
|
||
postPatch = '' | ||
substituteInPlace setup.py --replace ",<3dev" "" | ||
''; | ||
|
||
meta = { | ||
description = "An easy, HTML5, whitelisting HTML sanitizer"; | ||
longDescription = '' | ||
Bleach is an HTML sanitizing library that escapes or strips markup and | ||
attributes based on a white list. Bleach can also linkify text safely, | ||
applying filters that Django's urlize filter cannot, and optionally | ||
setting rel attributes, even on links already in the text. | ||
Bleach is intended for sanitizing text from untrusted sources. If you | ||
find yourself jumping through hoops to allow your site administrators | ||
to do lots of things, you're probably outside the use cases. Either | ||
trust those users, or don't. | ||
''; | ||
homepage = https://github.com/mozilla/bleach; | ||
downloadPage = https://github.com/mozilla/bleach/releases; | ||
license = lib.licenses.asl20; | ||
maintainers = with lib.maintainers; [ prikhi ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.