depot/third_party/nixpkgs/pkgs/development/python-modules/param/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

58 lines
1,018 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
hatchling,
hatch-vcs,
# tests
numpy,
pandas,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "param";
version = "2.1.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "holoviz";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-9264KfRDuHsvDyIpGKs2VTPcTZOZIFLKe7xuplkfzf4=";
};
nativeBuildInputs = [
hatchling
hatch-vcs
];
nativeCheckInputs = [
numpy
pandas
pytest-asyncio
pytestCheckHook
];
pytestFlagsArray = [
"-W"
"ignore::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/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}