summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/measurement/default.nix
blob: 9b7410a85dc005cfdf5370cea0e20208717c441d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  isPy3k,
  flit-core,
  flit-scm,
  sympy,
  pytestCheckHook,
  pytest-cov-stub,
  sphinx,
}:

buildPythonPackage rec {
  pname = "measurement";
  version = "4.0a8";
  pyproject = true;

  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "coddingtonbear";
    repo = "python-measurement";
    tag = version;
    hash = "sha256-QxXxx9Jbx7ykQFaw/3S6ANPUmw3mhvSa4np6crsfVtE=";
  };

  nativeBuildInputs = [
    flit-core
    flit-scm
    sphinx
  ];

  propagatedBuildInputs = [ sympy ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-cov-stub
  ];

  meta = {
    description = "Use and manipulate unit-aware measurement objects in Python";
    homepage = "https://github.com/coddingtonbear/python-measurement";
    changelog = "https://github.com/coddingtonbear/python-measurement/releases/tag/${version}";
    license = lib.licenses.mit;
  };
}