Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / clvm-tools / default.nix
blob9312c18ade5de61dd15e71de401067870f0badd6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , clvm
6 , clvm-tools-rs
7 , setuptools-scm
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "clvm_tools";
13   version = "0.4.6";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "Chia-Network";
18     repo = "clvm_tools";
19     rev = version;
20     hash = "sha256-MAtVTSv1RR2/7QEKCOEQ+QH5vK4aE0Us2TXyRRAMl8U=";
21   };
23   nativeBuildInputs = [
24     setuptools-scm
25   ];
27   propagatedBuildInputs = [
28     clvm
29     clvm-tools-rs
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [
37     "clvm_tools"
38   ];
40   disabledTests = [
41     "test_cmd_unknown-1_txt"
42   ];
44   # give a hint to setuptools-scm on package version
45   SETUPTOOLS_SCM_PRETEND_VERSION="v${version}";
47   meta = with lib; {
48     description = "Tools for clvm development";
49     homepage = "https://www.chialisp.com/";
50     license = licenses.asl20;
51     maintainers = teams.chia.members;
52   };