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
13}:
14
15buildPythonPackage rec {
16 pname = "quantiphy";
17 version = "2.19";
18 format = "pyproject";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "KenKundert";
24 repo = "quantiphy";
25 rev = "v${version}";
26 hash = "sha256-oSWq/D1EX6mxUDElfujyOSEtql0csAm72u2B5RuQddE=";
27 };
28
29 nativeBuildInputs = [
30 flit-core
31 ];
32
33 propagatedBuildInputs = [
34 quantiphy-eval
35 rkm-codes
36 ];
37
38 nativeCheckInputs = [
39 inform
40 parametrize-from-file
41 pytestCheckHook
42 setuptools
43 voluptuous
44 ];
45
46 pythonImportsCheck = [
47 "quantiphy"
48 ];
49
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 };
57}