nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 httpsig,
6 pytest-asyncio,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "pysmartapp";
13 version = "0.3.5";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "andrewsayre";
18 repo = "pysmartapp";
19 tag = version;
20 hash = "sha256-RiRGOO5l5hcHllyDDGLtQHr51JOTZhAa/wK8BfMqmAY=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [ httpsig ];
26
27 nativeCheckInputs = [
28 pytest-asyncio
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "pysmartapp" ];
33
34 disabledTestPaths = [
35 # These tests are outdated
36 "tests/test_smartapp.py"
37 ];
38
39 meta = {
40 description = "Python implementation to work with SmartApp lifecycle events";
41 homepage = "https://github.com/andrewsayre/pysmartapp";
42 changelog = "https://github.com/andrewsayre/pysmartapp/releases/tag/${src.tag}";
43 license = lib.licenses.mit;
44 maintainers = with lib.maintainers; [ fab ];
45 };
46}