1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "param";
10 version = "1.13.0";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "holoviz";
17 repo = pname;
18 rev = "refs/tags/v${version}";
19 hash = "sha256-5b3UTzb7OXBwcyYyDVCGLUpWxNOYZ3cv8Gfw+x7jsBI=";
20 };
21
22 nativeCheckInputs = [
23 pytestCheckHook
24 ];
25
26 postPatch = ''
27 # Version is not set properly
28 substituteInPlace setup.py \
29 --replace 'version=get_setup_version("param"),' 'version="${version}",'
30 '';
31
32 pythonImportsCheck = [
33 "param"
34 ];
35
36 meta = with lib; {
37 description = "Declarative Python programming using Parameters";
38 homepage = "https://param.holoviz.org/";
39 changelog = "https://github.com/holoviz/param/releases/tag/v${version}";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ ];
42 };
43}