nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 36 lines 785 B view raw
1{ 2 lib, 3 buildPythonApplication, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonApplication rec { 10 pname = "mbutil"; 11 version = "0.3.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "mapbox"; 16 repo = "mbutil"; 17 tag = "v${version}"; 18 hash = "sha256-vxAF49NluEI/cZMUv1dlQBpUh1jfZ6KUVkYAmFAWphk="; 19 }; 20 21 patches = [ ./migrate_to_pytest.patch ]; 22 23 build-system = [ setuptools ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 enabledTestPaths = [ "test/test.py" ]; 27 28 meta = { 29 description = "Importer and exporter for MBTiles"; 30 mainProgram = "mb-util"; 31 homepage = "https://github.com/mapbox/mbutil"; 32 license = lib.licenses.bsd3; 33 platforms = lib.platforms.unix; 34 maintainers = with lib.maintainers; [ sikmir ]; 35 }; 36}