mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, packaging
|
|
, paramiko
|
|
, pytestCheckHook
|
|
, requests
|
|
, setuptools-scm
|
|
, urllib3
|
|
, websocket-client
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "docker";
|
|
version = "6.0.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-iWxCguXHr1xF6LaDsLDDOTKXT+blD8aQagqDYWqz2pc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
packaging
|
|
requests
|
|
urllib3
|
|
websocket-client
|
|
];
|
|
|
|
passthru.optional-dependencies.ssh = [
|
|
paramiko
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
|
|
|
pytestFlagsArray = [
|
|
"tests/unit"
|
|
];
|
|
|
|
# Deselect socket tests on Darwin because it hits the path length limit for a Unix domain socket
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
"api_test" "stream_response" "socket_file"
|
|
];
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
pythonImportsCheck = [
|
|
"docker"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "An API client for docker written in Python";
|
|
homepage = "https://github.com/docker/docker-py";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ jonringer ];
|
|
};
|
|
}
|