1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 isPy3k,
6 flit-core,
7 flit-scm,
8 sympy,
9 pytestCheckHook,
10 pytest-cov-stub,
11 sphinx,
12}:
13
14buildPythonPackage rec {
15 pname = "measurement";
16 version = "4.0a8";
17 format = "pyproject";
18
19 disabled = !isPy3k;
20
21 src = fetchFromGitHub {
22 owner = "coddingtonbear";
23 repo = "python-measurement";
24 tag = version;
25 hash = "sha256-QxXxx9Jbx7ykQFaw/3S6ANPUmw3mhvSa4np6crsfVtE=";
26 };
27
28 nativeBuildInputs = [
29 flit-core
30 flit-scm
31 sphinx
32 ];
33
34 propagatedBuildInputs = [ sympy ];
35
36 nativeCheckInputs = [
37 pytestCheckHook
38 pytest-cov-stub
39 ];
40
41 meta = {
42 description = "Use and manipulate unit-aware measurement objects in Python";
43 homepage = "https://github.com/coddingtonbear/python-measurement";
44 changelog = "https://github.com/coddingtonbear/python-measurement/releases/tag/${version}";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ bhipple ];
47 };
48}