1{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
2, pytest
3}:
4
5buildPythonPackage rec {
6 pname = "coordinates";
7 version = "0.4.0";
8
9 disabled = pythonOlder "3.5";
10
11 src = fetchFromGitHub {
12 owner = "clbarnes";
13 repo = "coordinates";
14 rev = "v${version}";
15 sha256 = "1zha594rshjg3qjq9mrai2hfldya282ihasp2i3km7b2j4gjdw2b";
16 };
17
18 nativeCheckInputs = [ pytest ];
19
20 checkPhase = ''
21 runHook preCheck
22 pytest tests/
23 runHook postCheck
24 '';
25
26 meta = with lib; {
27 description = "Convenience class for doing maths with explicit coordinates";
28 homepage = "https://github.com/clbarnes/coordinates";
29 license = licenses.mit;
30 maintainers = [ ];
31 };
32}