1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 numpy,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9 setuptools-scm,
10}:
11
12buildPythonPackage rec {
13 pname = "quantities";
14 version = "0.16.2";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "python-quantities";
21 repo = "python-quantities";
22 tag = "v${version}";
23 hash = "sha256-6Kl7TiSCSDtMjRKMNVweoGJ1y8kmo1j4SY0tikyAozs=";
24 };
25
26 build-system = [
27 setuptools
28 setuptools-scm
29 ];
30
31 dependencies = [ numpy ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "quantities" ];
36
37 meta = with lib; {
38 description = "Quantities is designed to handle arithmetic and conversions of physical quantities";
39 homepage = "https://python-quantities.readthedocs.io/";
40 changelog = "https://github.com/python-quantities/python-quantities/blob/v${version}/CHANGES.txt";
41 license = licenses.bsd2;
42 maintainers = [ ];
43 };
44}