55 lines
926 B
Nix
55 lines
926 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
hatch-vcs,
|
|
|
|
# tests
|
|
numpy,
|
|
pandas,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "param";
|
|
version = "2.2.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "holoviz";
|
|
repo = "param";
|
|
tag = "v${version}";
|
|
hash = "sha256-tucF37o4Yf1OkGz4TUUFI/cGNlVLvTMcak+SmbztCMA=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
numpy
|
|
pandas
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlags = [
|
|
"-Wignore::DeprecationWarning"
|
|
];
|
|
|
|
pythonImportsCheck = [ "param" ];
|
|
|
|
meta = with lib; {
|
|
description = "Declarative Python programming using Parameters";
|
|
homepage = "https://param.holoviz.org/";
|
|
changelog = "https://github.com/holoviz/param/releases/tag/${src.tag}";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|