567e8dfd8e
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>
35 lines
751 B
Nix
35 lines
751 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
django,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "laces";
|
|
version = "0.1.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tbrlpld";
|
|
repo = "laces";
|
|
tag = "v${version}";
|
|
hash = "sha256-ELpPq7pqcLfAqUuHh8NOAOOiGPDImTFsA7WUHvVfMiI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
pythonImportsCheck = [ "laces" ];
|
|
|
|
meta = {
|
|
description = "Django components that know how to render themselves";
|
|
homepage = "https://github.com/tbrlpld/laces";
|
|
changelog = "https://github.com/tbrlpld/laces/blob/${src.rev}/CHANGELOG.md";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ sephi ];
|
|
};
|
|
}
|