diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/minio/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/minio/default.nix | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/minio/default.nix b/nixpkgs/pkgs/development/python-modules/minio/default.nix index b23d264f72db..fdbcf09534b2 100644 --- a/nixpkgs/pkgs/development/python-modules/minio/default.nix +++ b/nixpkgs/pkgs/development/python-modules/minio/default.nix @@ -1,38 +1,53 @@ -{ lib, buildPythonPackage, isPy3k, fetchPypi +{ lib +, buildPythonPackage +, certifi , configparser , faker +, fetchFromGitHub , future , mock , nose +, pytestCheckHook , python-dateutil +, pythonOlder , pytz -, pytestCheckHook , urllib3 -, certifi }: buildPythonPackage rec { pname = "minio"; - version = "7.0.2"; - disabled = !isPy3k; + version = "7.0.3"; + disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - sha256 = "f2f6022cfe4694d946972efef2a752f87d08cc030940faa50a640088772953c8"; + src = fetchFromGitHub { + owner = "minio"; + repo = "minio-py"; + rev = version; + sha256 = "14symk7b3i9xzfc2wkcnqmfsvh9j3jx2ijz7dgy1xyrbjwb7yzhc"; }; propagatedBuildInputs = [ + certifi configparser future python-dateutil pytz urllib3 - certifi ]; - checkInputs = [ faker mock nose pytestCheckHook ]; + checkInputs = [ + faker + mock + nose + pytestCheckHook + ]; + # example credentials aren't present - pytestFlagsArray = [ "--ignore=tests/unit/credentials_test.py" ]; + disabledTestPaths = [ + "tests/unit/credentials_test.py" + ]; + + pythonImportsCheck = [ "minio" ]; meta = with lib; { description = "Simple APIs to access any Amazon S3 compatible object storage server"; |