2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
django,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
python,
|
2023-03-30 22:05:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "telepath";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.3.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "telepath";
|
|
|
|
owner = "wagtail";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-MS4Q41WVSrjFmFjv4fztyf0U2+5WkNU79aPEKv/CeUQ=";
|
2023-03-30 22:05:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ django ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m django test --settings=telepath.test_settings
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "telepath" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library for exchanging data between Python and JavaScript";
|
2023-03-30 22:05:00 +00:00
|
|
|
homepage = "https://github.com/wagtail/telepath";
|
|
|
|
changelog = "https://github.com/wagtail/telepath/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ sephi ];
|
|
|
|
};
|
|
|
|
}
|