aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/coordinates/default.nix
blob: c7a24a0c3e90ae7cf8237b600e6cee86aa977b4f (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
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, pytest
}:

buildPythonPackage rec {
  pname = "coordinates";
  version = "0.4.0";

  disabled = pythonOlder "3.5";

  src = fetchFromGitHub {
    owner = "clbarnes";
    repo = "coordinates";
    rev = "v${version}";
    sha256 = "1zha594rshjg3qjq9mrai2hfldya282ihasp2i3km7b2j4gjdw2b";
  };

  checkInputs = [ pytest ];

  checkPhase = ''
    runHook preCheck
    pytest tests/
    runHook postCheck
  '';

  meta = with lib; {
    description = "Convenience class for doing maths with explicit coordinates";
    homepage = "https://github.com/clbarnes/coordinates";
    license = licenses.mit;
    maintainers = [ ];
  };
}