Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / quantiphy / default.nix
blob57ac30017ce448bec7bf61fb712a1e7458746fb7
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , flit-core
5 , pytestCheckHook
6 , pythonOlder
7 , inform
8 , parametrize-from-file
9 , setuptools
10 , voluptuous
11 , quantiphy-eval
12 , rkm-codes
15 buildPythonPackage rec {
16   pname = "quantiphy";
17   version = "2.19";
18   format = "pyproject";
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "KenKundert";
24     repo = "quantiphy";
25     rev = "v${version}";
26     hash = "sha256-oSWq/D1EX6mxUDElfujyOSEtql0csAm72u2B5RuQddE=";
27   };
29   nativeBuildInputs = [
30     flit-core
31   ];
33   propagatedBuildInputs = [
34     quantiphy-eval
35     rkm-codes
36   ];
38   nativeCheckInputs = [
39     inform
40     parametrize-from-file
41     pytestCheckHook
42     setuptools
43     voluptuous
44   ];
46   pythonImportsCheck = [
47     "quantiphy"
48   ];
50   meta = with lib; {
51     description = "Module for physical quantities (numbers with units)";
52     homepage = "https://quantiphy.readthedocs.io";
53     changelog = "https://github.com/KenKundert/quantiphy/releases/tag/v${version}";
54     license = licenses.mit;
55     maintainers = with maintainers; [ jpetrucciani ];
56   };