Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / coordinates / default.nix
blob5c5e53e989f2624f9ac19b0d955ed63381ef2833
1 { lib, buildPythonPackage, fetchFromGitHub, pythonOlder
2 , pytest
3 }:
5 buildPythonPackage rec {
6   pname = "coordinates";
7   version = "0.4.0";
9   disabled = pythonOlder "3.5";
11   src = fetchFromGitHub {
12     owner = "clbarnes";
13     repo = "coordinates";
14     rev = "v${version}";
15     sha256 = "1zha594rshjg3qjq9mrai2hfldya282ihasp2i3km7b2j4gjdw2b";
16   };
18   nativeCheckInputs = [ pytest ];
20   checkPhase = ''
21     runHook preCheck
22     pytest tests/
23     runHook postCheck
24   '';
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   };