mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
0215034f25
when they already rely on SRI hashes.
60 lines
1018 B
Nix
60 lines
1018 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy3k
|
|
, httplib2
|
|
, keyring
|
|
, lazr-restfulclient
|
|
, lazr-uri
|
|
, setuptools
|
|
, six
|
|
, testresources
|
|
, wadllib
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "launchpadlib";
|
|
version = "1.11.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-AYmMk3R3sMZKdTOK2wl3Ao1zRqigGesCPPaP7ZmFAUY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
httplib2
|
|
keyring
|
|
lazr-restfulclient
|
|
lazr-uri
|
|
setuptools
|
|
six
|
|
testresources
|
|
wadllib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
doCheck = isPy3k;
|
|
|
|
pythonImportsCheck = [
|
|
"launchpadlib"
|
|
"launchpadlib.apps"
|
|
"launchpadlib.credentials"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Script Launchpad through its web services interfaces. Officially supported";
|
|
homepage = "https://help.launchpad.net/API/launchpadlib";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|