about summary refs log tree commit diff
path: root/pkgs/development/python-modules/telepath/default.nix
blob: 3af1ba09950f5c15f70073d0deed528dfe8f0c96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  buildPythonPackage,
  django,
  fetchFromGitHub,
  lib,
  python,
}:

buildPythonPackage rec {
  pname = "telepath";
  version = "0.3.1";
  format = "setuptools";

  src = fetchFromGitHub {
    repo = "telepath";
    owner = "wagtail";
    rev = "v${version}";
    hash = "sha256-MS4Q41WVSrjFmFjv4fztyf0U2+5WkNU79aPEKv/CeUQ=";
  };

  checkInputs = [ django ];

  checkPhase = ''
    ${python.interpreter} -m django test --settings=telepath.test_settings
  '';

  pythonImportsCheck = [ "telepath" ];

  meta = with lib; {
    description = "Library for exchanging data between Python and JavaScript";
    homepage = "https://github.com/wagtail/telepath";
    changelog = "https://github.com/wagtail/telepath/blob/v${version}/CHANGELOG.md";
    license = licenses.bsd3;
    maintainers = with maintainers; [ sephi ];
  };
}