Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / geomet / default.nix
bloba4df450098dfc561df131eebb8fe46a53ba28e63
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , click
6 , six
7 }:
9 buildPythonPackage rec {
10   pname = "geomet";
11   version = "0.2.1";
13   # pypi tarball doesn't include tests
14   src = fetchFromGitHub {
15     owner = "geomet";
16     repo = "geomet";
17     rev = version;
18     sha256 = "0fdi26glsmrsyqk86rnsfcqw79svn2b0ikdv89pq98ihrpwhn85y";
19   };
21   patches = [
22     (fetchpatch {
23       name = "python-3.8-support.patch";
24       url = "https://github.com/geomet/geomet/commit/dc4cb4a856d3ad814b57b4b7487d86d9e0f0fad4.patch";
25       sha256 = "1f1cdfqyp3z01jdjvax77219l3gc75glywqrisqpd2k0m0g7fwh3";
26     })
27   ];
29   propagatedBuildInputs = [ click six ];
31   meta = with lib; {
32     homepage = "https://github.com/geomet/geomet";
33     license = licenses.asl20;
34     description = "Convert GeoJSON to WKT/WKB (Well-Known Text/Binary), and vice versa.";
35     maintainers = with maintainers; [ turion ris ];
36   };