mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +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.
52 lines
949 B
Nix
52 lines
949 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPy3k
|
|
, jsonpickle
|
|
, mock
|
|
, pytest
|
|
, pytestCheckHook
|
|
, requests
|
|
, responses
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-digitalocean";
|
|
version = "1.17.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "koalalorenzo";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1c50ka4y712rr551gq3kdfw7fgfxr4w837sww6yy683yz7m1d1h8";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
jsonpickle
|
|
requests
|
|
];
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
nativeCheckInputs = [
|
|
pytest
|
|
pytestCheckHook
|
|
responses
|
|
] ++ lib.optionals (!isPy3k) [
|
|
mock
|
|
];
|
|
|
|
preCheck = ''
|
|
cd digitalocean
|
|
'';
|
|
|
|
pythonImportsCheck = [ "digitalocean" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python API to manage Digital Ocean Droplets and Images";
|
|
homepage = "https://github.com/koalalorenzo/python-digitalocean";
|
|
license = with licenses; [ lgpl3Only ];
|
|
maintainers = with maintainers; [ kiwi teh ];
|
|
};
|
|
}
|