python3Packages.param: 1.13.0 -> 2.0.0

https://github.com/holoviz/param/releases/tag/v2.0.0
This commit is contained in:
Martin Weinelt
2023-12-20 20:44:46 +01:00
parent f00fa3101b
commit 7dc419f73a
@@ -1,14 +1,23 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
# build-system
, hatchling
, hatch-vcs
# tests
, numpy
, pandas
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "param";
version = "1.13.0";
format = "setuptools";
version = "2.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
@@ -16,18 +25,20 @@ buildPythonPackage rec {
owner = "holoviz";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-5b3UTzb7OXBwcyYyDVCGLUpWxNOYZ3cv8Gfw+x7jsBI=";
hash = "sha256-8R1+utY3e3py4iJTgOVfzt5Y7bp2Rn6OfoITGuOsb5c=";
};
nativeCheckInputs = [
pytestCheckHook
nativeBuildInputs = [
hatchling
hatch-vcs
];
postPatch = ''
# Version is not set properly
substituteInPlace setup.py \
--replace 'version=get_setup_version("param"),' 'version="${version}",'
'';
nativeCheckInputs = [
numpy
pandas
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"param"