5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
43 lines
931 B
Nix
43 lines
931 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "param";
|
|
version = "1.13.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "holoviz";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-5b3UTzb7OXBwcyYyDVCGLUpWxNOYZ3cv8Gfw+x7jsBI=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
# Version is not set properly
|
|
substituteInPlace setup.py \
|
|
--replace 'version=get_setup_version("param"),' 'version="${version}",'
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"param"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Declarative Python programming using Parameters";
|
|
homepage = "https://param.holoviz.org/";
|
|
changelog = "https://github.com/holoviz/param/releases/tag/v${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|