summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/dependency-injector/default.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/python-modules/dependency-injector/default.nix
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/python-modules/dependency-injector/default.nix')
-rw-r--r--pkgs/development/python-modules/dependency-injector/default.nix60
1 files changed, 43 insertions, 17 deletions
diff --git a/pkgs/development/python-modules/dependency-injector/default.nix b/pkgs/development/python-modules/dependency-injector/default.nix
index 9c977ecc5f0c..8958566070ed 100644
--- a/pkgs/development/python-modules/dependency-injector/default.nix
+++ b/pkgs/development/python-modules/dependency-injector/default.nix
@@ -1,27 +1,53 @@
-{ lib, buildPythonPackage, fetchPypi, isPy3k, six, unittest2, pyyaml, flask }:
-
-let
- testPath =
- if isPy3k
- then "test_*_py3.py"
- else "test_*_py2_py3.py";
-in
+{ lib
+, aiohttp
+, buildPythonPackage
+, fastapi
+, fetchFromGitHub
+, flask
+, httpx
+, mypy-boto3-s3
+, numpy
+, scipy
+, pydantic
+, pytestCheckHook
+, pyyaml
+, six
+}:
buildPythonPackage rec {
pname = "dependency-injector";
- version = "4.31.1";
+ version = "4.32.2";
- src = fetchPypi {
- inherit pname version;
- sha256 = "b6b28b9571f44d575367c6005ba8aaa9fd2b70310e1c15410925d6f1ee2769ad";
+ src = fetchFromGitHub {
+ owner = "ets-labs";
+ repo = "python-dependency-injector";
+ rev = version;
+ sha256 = "1gkkka0hl2hl4axf3gfm58mzv92bg0frr5jikw8g32hd4q4aagcg";
};
- propagatedBuildInputs = [ six ];
- checkInputs = [ unittest2 pyyaml flask ];
+ propagatedBuildInputs = [
+ six
+ ];
+
+ checkInputs = [
+ aiohttp
+ fastapi
+ flask
+ httpx
+ mypy-boto3-s3
+ numpy
+ pydantic
+ scipy
+ pytestCheckHook
+ pyyaml
+ ];
+
+ disabledTestPaths = [
+ # There is no unique identifier to disable the one failing test
+ "tests/unit/ext/test_aiohttp_py35.py"
+ ];
- checkPhase = ''
- unit2 discover -s tests/unit -p "${testPath}"
- '';
+ pythonImportsCheck = [ "dependency_injector" ];
meta = with lib; {
description = "Dependency injection microframework for Python";