mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
python3Packages.xml2rfc: 3.9.1 -> 3.10.0
This commit is contained in:
parent
f725095581
commit
5a0c59bb4d
@ -1,15 +1,34 @@
|
|||||||
{ lib, fetchPypi, buildPythonPackage, pythonAtLeast, intervaltree, pyflakes, requests, lxml, google-i18n-address
|
{ lib
|
||||||
, pycountry, html5lib, six, kitchen, pypdf2, dict2xml, weasyprint, pyyaml, jinja2, configargparse, appdirs
|
, fetchPypi
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, intervaltree
|
||||||
|
, pyflakes
|
||||||
|
, requests
|
||||||
|
, lxml
|
||||||
|
, google-i18n-address
|
||||||
|
, pycountry
|
||||||
|
, html5lib
|
||||||
|
, six
|
||||||
|
, kitchen
|
||||||
|
, pypdf2
|
||||||
|
, dict2xml
|
||||||
|
, weasyprint
|
||||||
|
, pyyaml
|
||||||
|
, jinja2
|
||||||
|
, configargparse
|
||||||
|
, appdirs
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "xml2rfc";
|
pname = "xml2rfc";
|
||||||
version = "3.9.1";
|
version = "3.10.0";
|
||||||
disabled = pythonAtLeast "3.9";
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "76cee167e81fc3cc0e0cc696fe58cadd039e19a774c8f4d2e5c0fea724c7aaca";
|
sha256 = "sha256-DJjGQAYFhXjAiJhWzxpQ0jRUSrnsNCcNz1KfPEjBoKE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -31,12 +50,18 @@ buildPythonPackage rec {
|
|||||||
appdirs
|
appdirs
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace requirements.txt \
|
||||||
|
--replace "jinja2>=2.11,<3.0" "jinja2>=2.11"
|
||||||
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# lxml tries to fetch from the internet
|
# lxml tries to fetch from the internet
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [ "xml2rfc" ];
|
pythonImportsCheck = [ "xml2rfc" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user