1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "coordinates";
12 version = "0.4.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "clbarnes";
19 repo = "coordinates";
20 tag = "v${version}";
21 hash = "sha256-S/AmH5FinTpHFFcrGAUSyjfqoIgq14QlHk9CnUkqCv4=";
22 };
23
24 build-system = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "coordinates" ];
29
30 meta = with lib; {
31 description = "Convenience class for doing maths with explicit coordinates";
32 homepage = "https://github.com/clbarnes/coordinates";
33 changelog = "https://github.com/clbarnes/coordinates/releases/tag/v${version}";
34 license = licenses.mit;
35 maintainers = [ ];
36 };
37}