depot/third_party/nixpkgs/pkgs/development/python-modules/flipr-api/default.nix
Default email eeb71630af Project import generated by Copybara.
GitOrigin-RevId: 636051e353461f073ac55d5d42c1ed062a345046
2022-11-02 23:02:43 +01:00

52 lines
886 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, requests-mock
, pythonOlder
, pytest-asyncio
, pytestCheckHook
, python-dateutil
, requests
}:
buildPythonPackage rec {
pname = "flipr-api";
version = "1.4.3";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "cnico";
repo = pname;
rev = version;
sha256 = "sha256-aTDZB1kUlvvxoio7EAl2KPHW/JkCcuIEPD4T4NN6FX8=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
python-dateutil
requests
];
checkInputs = [
requests-mock
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"flipr_api"
];
meta = with lib; {
description = "Python client for Flipr API";
homepage = "https://github.com/cnico/flipr-api";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}