504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
33 lines
714 B
Nix
33 lines
714 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "coordinates";
|
|
version = "0.4.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "clbarnes";
|
|
repo = "coordinates";
|
|
rev = "v${version}";
|
|
sha256 = "1zha594rshjg3qjq9mrai2hfldya282ihasp2i3km7b2j4gjdw2b";
|
|
};
|
|
|
|
nativeCheckInputs = [ 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 = [ ];
|
|
};
|
|
}
|