Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / param / default.nix
bloba37cf7c7f03dc455df8b872f803bc1ea057f5b66
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "param";
10   version = "1.13.0";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "holoviz";
17     repo = pname;
18     rev = "refs/tags/v${version}";
19     hash = "sha256-5b3UTzb7OXBwcyYyDVCGLUpWxNOYZ3cv8Gfw+x7jsBI=";
20   };
22   nativeCheckInputs = [
23     pytestCheckHook
24   ];
26   postPatch = ''
27     # Version is not set properly
28     substituteInPlace setup.py \
29       --replace 'version=get_setup_version("param"),' 'version="${version}",'
30   '';
32   pythonImportsCheck = [
33     "param"
34   ];
36   meta = with lib; {
37     description = "Declarative Python programming using Parameters";
38     homepage = "https://param.holoviz.org/";
39     changelog = "https://github.com/holoviz/param/releases/tag/v${version}";
40     license = licenses.bsd3;
41     maintainers = with maintainers; [ ];
42   };