mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 22:26:35 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
36 lines
826 B
Nix
36 lines
826 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 = {
|
|
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 = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ sephi ];
|
|
};
|
|
}
|