nixpkgs/pkgs/development/python-modules/gpxpy/default.nix

29 lines
681 B
Nix
Raw Normal View History

2020-07-11 23:12:41 +01:00
{ lib, fetchFromGitHub, buildPythonPackage, python, lxml, isPy3k }:
2019-12-29 00:09:39 +00:00
buildPythonPackage rec {
pname = "gpxpy";
2020-07-11 23:12:41 +01:00
version = "1.4.2";
disabled = !isPy3k;
2019-12-29 00:09:39 +00:00
src = fetchFromGitHub {
owner = "tkrajina";
repo = pname;
rev = "v${version}";
2020-07-11 23:12:41 +01:00
sha256 = "1r5gb660nrkrdbw5m5h1n5k10npcfv9bxqv92z55ds8r7rw2saz6";
2019-12-29 00:09:39 +00:00
};
propagatedBuildInputs = [ lxml ];
checkPhase = ''
${python.interpreter} -m unittest test
'';
meta = with lib; {
description = "Python GPX (GPS eXchange format) parser";
homepage = "https://github.com/tkrajina/gpxpy";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ sikmir ];
};
}