depot/third_party/nixpkgs/pkgs/development/python-modules/telepath/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

36 lines
830 B
Nix

{
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 = "A 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 ];
};
}