at 23.05-pre 791 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "param"; 9 version = "1.12.2"; 10 11 src = fetchFromGitHub { 12 owner = "holoviz"; 13 repo = pname; 14 rev = "refs/tags/v${version}"; 15 sha256 = "sha256-NrMsIDcpZc/R2j8VuXitbnIlhP3NtLxU/OkygXqYok8="; 16 }; 17 18 checkInputs = [ 19 pytestCheckHook 20 ]; 21 22 postPatch = '' 23 # Version is not set properly 24 substituteInPlace setup.py \ 25 --replace 'version=get_setup_version("param"),' 'version="${version}",' 26 ''; 27 28 pythonImportsCheck = [ 29 "param" 30 ]; 31 32 meta = with lib; { 33 description = "Declarative Python programming using Parameters"; 34 homepage = "https://github.com/pyviz/param"; 35 license = licenses.bsd3; 36 maintainers = with maintainers; [ costrouc ]; 37 }; 38}