Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 40 lines
Nix
at llvm-cleanup
1234567891011121314151617181920212223242526272829303132333435363738394041{ lib, stdenv, buildPythonPackage, fetchPypi, libmaxminddb, pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "maxminddb"; version = "2.6.1"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-bF1ZH2JeA7CjTfDH/4FYBnY5e4M14T7OEwxuOeSjr7k="; };
buildInputs = [ libmaxminddb ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "maxminddb" ];
# The multiprocessing tests fail on Darwin because multiprocessing uses spawn instead of fork, # resulting in an exception when it can’t pickle the `lookup` local function. disabledTests = lib.optionals stdenv.isDarwin [ "multiprocessing" ];
meta = with lib; { description = "Reader for the MaxMind DB format"; homepage = "https://github.com/maxmind/MaxMind-DB-Reader-python"; changelog = "https://github.com/maxmind/MaxMind-DB-Reader-python/blob/v${version}/HISTORY.rst"; license = licenses.asl20; maintainers = with maintainers; [ ]; };}