mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
python3Packages.xmlschema: 1.0.18 -> 1.1.0
This commit is contained in:
parent
157f392f57
commit
1a297c817f
@ -4,14 +4,14 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.0.18";
|
||||
version = "1.1.0";
|
||||
pname = "xmlschema";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sissaschool";
|
||||
repo = "xmlschema";
|
||||
rev = "v${version}";
|
||||
sha256 = "1pwq2sfh7klcxismsqzgw80cp3cdkq9wv8x9g3h1zx1p66xpas9p";
|
||||
sha256 = "1h8321jb6q3dhlh3608y3f3sbbzfd3jg1psyirxkrm4w5xs3lbvy";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ elementpath ];
|
||||
@ -20,19 +20,17 @@ buildPythonPackage rec {
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "elementpath~=1.3.0" "elementpath~=1.3"
|
||||
--replace "elementpath~=1.4.0" "elementpath~=1.4"
|
||||
'';
|
||||
|
||||
# Ignore broken fixtures, and tests for files which don't exist.
|
||||
# For darwin, we need to explicity say we can't reach network
|
||||
checkPhase = ''
|
||||
substituteInPlace xmlschema/tests/__init__.py \
|
||||
--replace "SKIP_REMOTE_TESTS = " "SKIP_REMOTE_TESTS = True #"
|
||||
pytest . \
|
||||
--ignore=xmlschema/tests/test_factory.py \
|
||||
--ignore=xmlschema/tests/test_memory.py \
|
||||
--ignore=xmlschema/tests/test_validators.py \
|
||||
--ignore=xmlschema/tests/test_schemas.py \
|
||||
pytest tests \
|
||||
--ignore=tests/test_factory.py \
|
||||
--ignore=tests/test_schemas.py \
|
||||
--ignore=tests/test_memory.py \
|
||||
--ignore=tests/test_validation.py \
|
||||
-k 'not element_tree_import_script'
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user