Files
nixpkgs/pkgs/development/python-modules/brottsplatskartan/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

38 lines
781 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-cov-stub,
pytestCheckHook,
requests,
}:
buildPythonPackage rec {
pname = "brottsplatskartan";
version = "1.0.5";
format = "setuptools";
src = fetchFromGitHub {
owner = "chrillux";
repo = "brottsplatskartan";
rev = version;
sha256 = "07iwmnchvpw156j23yfccg4c32izbwm8b02bjr1xgmcwzbq21ks9";
};
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "brottsplatskartan" ];
meta = {
description = "Python API wrapper for brottsplatskartan.se";
homepage = "https://github.com/chrillux/brottsplatskartan";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}