mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-25 01:50:40 +00:00
python3Packages.overturemaps: enable tests (#543365)
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
fetchPypi,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
python3Packages.buildPythonPackage (finalAttrs: {
|
||||
pname = "overturemaps";
|
||||
version = "1.0.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
inherit (finalAttrs) pname version;
|
||||
hash = "sha256-yKl13Y9kRCGHzoqeZIQEac/PrByTCtCQFaz8sUgeVIs=";
|
||||
};
|
||||
|
||||
@@ -30,11 +30,24 @@ python3Packages.buildPythonPackage rec {
|
||||
tqdm
|
||||
];
|
||||
|
||||
# Drop once tqdm 4.67.3 reaches master
|
||||
pythonRelaxDeps = [ "tqdm" ];
|
||||
|
||||
pythonImportsCheck = [ "overturemaps" ];
|
||||
|
||||
preCheck = ''
|
||||
substituteInPlace pytest.ini \
|
||||
--replace-fail "testpaths = tests benchmarks" "testpaths = tests"
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
# requires network
|
||||
"tests/test_changelog.py"
|
||||
"tests/test_gers.py"
|
||||
"tests/test_releases.py"
|
||||
];
|
||||
|
||||
nativeCheckInputs = with python3Packages; [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Official command-line tool of the Overture Maps Foundation";
|
||||
homepage = "https://overturemaps.org/";
|
||||
@@ -42,4 +55,4 @@ python3Packages.buildPythonPackage rec {
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ crimeminister ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user