python3Packages.ripe-atlas-sagan: add optional dependency
This commit is contained in:
parent
6f1e8c3160
commit
19c8149641
1 changed files with 21 additions and 8 deletions
|
@ -1,38 +1,51 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, python-dateutil
|
|
||||||
, pytz
|
|
||||||
, cryptography
|
, cryptography
|
||||||
, pytest
|
|
||||||
, pytestCheckHook
|
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, python-dateutil
|
||||||
|
, pythonOlder
|
||||||
|
, pytz
|
||||||
|
, ujson
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ripe-atlas-sagan";
|
pname = "ripe-atlas-sagan";
|
||||||
version = "1.3.1";
|
version = "1.3.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "RIPE-NCC";
|
owner = "RIPE-NCC";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-xIBIKsQvDmVBa/C8/7Wr3WKeepHaGhoXlgatXSUtWLA=";
|
hash = "sha256-xIBIKsQvDmVBa/C8/7Wr3WKeepHaGhoXlgatXSUtWLA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
cryptography
|
||||||
python-dateutil
|
python-dateutil
|
||||||
pytz
|
pytz
|
||||||
cryptography
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
passthru.optional-dependencies = {
|
||||||
|
fast = [
|
||||||
|
ujson
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [ "tests/*.py" ];
|
pytestFlagsArray = [
|
||||||
|
"tests/*.py"
|
||||||
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
"test_invalid_country_code" # This test fail for unknown reason, I suspect it to be flaky.
|
# This test fail for unknown reason, I suspect it to be flaky.
|
||||||
|
"test_invalid_country_code"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
|
|
Loading…
Reference in a new issue