2020-07-12 00:12:41 +02:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, python, lxml, isPy3k }:
|
2019-12-29 01:09:39 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gpxpy";
|
2020-07-12 00:12:41 +02:00
|
|
|
version = "1.4.2";
|
|
|
|
disabled = !isPy3k;
|
2019-12-29 01:09:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tkrajina";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-07-12 00:12:41 +02:00
|
|
|
sha256 = "1r5gb660nrkrdbw5m5h1n5k10npcfv9bxqv92z55ds8r7rw2saz6";
|
2019-12-29 01:09:39 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|