1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 hatchling,
8
9 # tests
10 numpy,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "wadler-lindig";
16 version = "0.1.7";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "patrick-kidger";
21 repo = "wadler_lindig";
22 tag = "v${version}";
23 hash = "sha256-qP826zdzR5BEQ8bGd45RFSLTH6Eal+b7UN+BW07/glo=";
24 };
25
26 build-system = [
27 hatchling
28 ];
29
30 pythonImportsCheck = [
31 "wadler_lindig"
32 ];
33
34 nativeCheckInputs = [
35 numpy
36 pytestCheckHook
37 ];
38
39 meta = {
40 description = "Wadler--Lindig pretty printer for Python";
41 homepage = "https://github.com/patrick-kidger/wadler_lindig";
42 changelog = "https://github.com/patrick-kidger/wadler_lindig/releases/tag/${src.tag}";
43 license = lib.licenses.asl20;
44 maintainers = with lib.maintainers; [ GaetanLepage ];
45 };
46}