nixpkgs/pkgs/development/python-modules/param/default.nix

39 lines
782 B
Nix
Raw Normal View History

2019-02-24 16:26:24 +01:00
{ lib
, buildPythonPackage
2021-10-22 12:05:47 +02:00
, fetchFromGitHub
, pytestCheckHook
2019-02-24 16:26:24 +01:00
}:
buildPythonPackage rec {
pname = "param";
version = "1.12.0";
2019-02-24 16:26:24 +01:00
2021-10-22 12:05:47 +02:00
src = fetchFromGitHub {
owner = "holoviz";
repo = pname;
rev = "v${version}";
sha256 = "02zmd4bwyn8b4q1l9jgddc70ii1i7bmynacanl1cvbr6la4v9b2c";
2019-02-24 16:26:24 +01:00
};
2021-10-22 12:05:47 +02:00
checkInputs = [
pytestCheckHook
];
2019-02-24 16:26:24 +01:00
2021-10-22 12:05:47 +02:00
postPatch = ''
# Version is not set properly
substituteInPlace setup.py \
--replace 'version=get_setup_version("param"),' 'version="${version}",'
'';
2019-02-24 16:26:24 +01:00
pythonImportsCheck = [
"param"
];
2019-02-24 16:26:24 +01:00
meta = with lib; {
description = "Declarative Python programming using Parameters";
homepage = "https://github.com/pyviz/param";
2019-02-24 16:26:24 +01:00
license = licenses.bsd3;
maintainers = with maintainers; [ costrouc ];
2019-02-24 16:26:24 +01:00
};
}