Files
nixpkgs/pkgs/development/python-modules/linode-api/default.nix
T
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

40 lines
828 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
, pytestCheckHook
, mock
}:
buildPythonPackage rec {
pname = "linode-api";
version = "5.7.2";
format = "setuptools";
disabled = pythonOlder "3.6";
# Sources from Pypi exclude test fixtures
src = fetchFromGitHub {
owner = "linode";
repo = "python-linode-api";
rev = "refs/tags/v${version}";
sha256 = "sha256-RU/GyNYV05iYVNanMqKMmoksXWrxTQ2H2XvaIwSSslA=";
};
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "linode_api4" ];
meta = with lib; {
description = "Python library for the Linode API v4";
homepage = "https://github.com/linode/python-linode-api";
license = licenses.bsd3;
maintainers = with maintainers; [ glenns ];
};
}