1{
2 buildPythonPackage,
3 django,
4 fetchFromGitHub,
5 lib,
6 python,
7}:
8
9buildPythonPackage rec {
10 pname = "telepath";
11 version = "0.3.1";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 repo = "telepath";
16 owner = "wagtail";
17 rev = "v${version}";
18 hash = "sha256-MS4Q41WVSrjFmFjv4fztyf0U2+5WkNU79aPEKv/CeUQ=";
19 };
20
21 checkInputs = [ django ];
22
23 checkPhase = ''
24 ${python.interpreter} -m django test --settings=telepath.test_settings
25 '';
26
27 pythonImportsCheck = [ "telepath" ];
28
29 meta = with lib; {
30 description = "Library for exchanging data between Python and JavaScript";
31 homepage = "https://github.com/wagtail/telepath";
32 changelog = "https://github.com/wagtail/telepath/blob/v${version}/CHANGELOG.md";
33 license = licenses.bsd3;
34 maintainers = with maintainers; [ sephi ];
35 };
36}