2020-01-08 20:52:20 +01:00
|
|
|
{ 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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/clbarnes/coordinates";
|
2020-01-08 20:52:20 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mildlyincompetent ];
|
|
|
|
};
|
|
|
|
}
|