depot/third_party/nixpkgs/pkgs/development/python-modules/pyspcwebgw/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

45 lines
851 B
Nix

{ lib
, aiohttp
, aioresponses
, asynccmd
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyspcwebgw";
version = "0.6.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "mbrrg";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-Pjv8AxXuwi48Z8U+LSZZ+OhXrE3KlX7jlmnXTBLxXOs=";
};
propagatedBuildInputs = [
asynccmd
aiohttp
];
checkInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "pyspcwebgw" ];
meta = with lib; {
description = "Python module for the SPC Web Gateway REST API";
homepage = "https://github.com/mbrrg/pyspcwebgw";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}