41 lines
897 B
Nix
41 lines
897 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
httpsig,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysmartapp";
|
|
version = "0.3.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "andrewsayre";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-RiRGOO5l5hcHllyDDGLtQHr51JOTZhAa/wK8BfMqmAY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ httpsig ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "pysmartapp" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python implementation to work with SmartApp lifecycle events";
|
|
homepage = "https://github.com/andrewsayre/pysmartapp";
|
|
changelog = "https://github.com/andrewsayre/pysmartapp/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|