1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "numericalunits";
11 version = "1.26";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "sbyrnes321";
16 repo = "numericalunits";
17 tag = "numericalunits-${version}";
18 hash = "sha256-vPB1r+j+p9n+YLnBjHuk2t+QSr+adEOjyC45QSbeb4M=";
19 };
20
21 build-system = [
22 setuptools
23 ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 ];
28
29 enabledTestPaths = [
30 "tests/tests.py"
31 ];
32
33 meta = {
34 homepage = "http://pypi.python.org/pypi/numericalunits";
35 description = "Package that lets you define quantities with unit";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ nickcao ];
38 };
39}