Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 37 lines 897 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchpatch 5, click 6, six 7}: 8 9buildPythonPackage rec { 10 pname = "geomet"; 11 version = "0.2.1"; 12 13 # pypi tarball doesn't include tests 14 src = fetchFromGitHub { 15 owner = "geomet"; 16 repo = "geomet"; 17 rev = version; 18 sha256 = "0fdi26glsmrsyqk86rnsfcqw79svn2b0ikdv89pq98ihrpwhn85y"; 19 }; 20 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 ]; 28 29 propagatedBuildInputs = [ click six ]; 30 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 }; 37}