1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

python3Packages.coordinates: init at 0.4.0

This commit is contained in:
Kajetan Champlewski 2020-01-08 19:52:20 +00:00 committed by Jon
parent 4f4e036675
commit d84fb6400c
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,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 = [ maintainers.mildlyincompetent ];
};
}

View file

@ -548,6 +548,8 @@ in {
connexion = callPackage ../development/python-modules/connexion { };
coordinates = callPackage ../development/python-modules/coordinates { };
cozy = callPackage ../development/python-modules/cozy { };
codespell = callPackage ../development/python-modules/codespell { };