Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "param";
10 version = "1.12.3";
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-XVHYx0M/BLjNNneObxygPHtid65ti7nctKsUMF21fmw=";
20 };
21
22 checkInputs = [
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://github.com/pyviz/param";
39 changelog = "https://github.com/holoviz/param/releases/tag/v${version}";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ costrouc ];
42 };
43}