2020-01-08 19:52:20 +00: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";
|
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2020-01-08 19:52:20 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
pytest tests/
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convenience class for doing maths with explicit coordinates";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/clbarnes/coordinates";
|
2020-01-08 19:52:20 +00:00
|
|
|
license = licenses.mit;
|
2020-10-30 07:45:03 +00:00
|
|
|
maintainers = [ ];
|
2020-01-08 19:52:20 +00:00
|
|
|
};
|
|
|
|
}
|