1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6
7 # build-system
8 hatchling,
9 hatch-vcs,
10
11 # tests
12 numpy,
13 pandas,
14 pytest-asyncio,
15 pytestCheckHook,
16}:
17
18buildPythonPackage rec {
19 pname = "param";
20 version = "2.2.0";
21 pyproject = true;
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchFromGitHub {
26 owner = "holoviz";
27 repo = pname;
28 tag = "v${version}";
29 hash = "sha256-3aqABliOk+JtR84J/qiwda4yAkVgG2lJWewhQuSUgtA=";
30 };
31
32 nativeBuildInputs = [
33 hatchling
34 hatch-vcs
35 ];
36
37 nativeCheckInputs = [
38 numpy
39 pandas
40 pytest-asyncio
41 pytestCheckHook
42 ];
43
44 pytestFlagsArray = [
45 "-W"
46 "ignore::DeprecationWarning"
47 ];
48
49 pythonImportsCheck = [ "param" ];
50
51 meta = with lib; {
52 description = "Declarative Python programming using Parameters";
53 homepage = "https://param.holoviz.org/";
54 changelog = "https://github.com/holoviz/param/releases/tag/${src.tag}";
55 license = licenses.bsd3;
56 maintainers = [ ];
57 };
58}