Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 66 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, betamax, buildPythonPackage, cachetools, coloredlogs, emoji, fetchPypi, nose, pythonOlder, pytz, requests}:
buildPythonPackage rec { pname = "locationsharinglib"; version = "5.0.1"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-KT/q1UIJ/DzGqz8T08MXG9UCstAcpDydM4Tkn33pruI="; };
propagatedBuildInputs = [ coloredlogs requests cachetools pytz ];
nativeCheckInputs = [ betamax emoji nose ];
postPatch = '' # Tests requirements want to pull in multiple modules which we don't need substituteInPlace setup.py \ --replace "tests_require=test_requirements" "tests_require=[]" substituteInPlace requirements.txt \ --replace "coloredlogs>=15.0.1" "coloredlogs" \ --replace "pytz>=2023.3" "pytz" '';
checkPhase = '' runHook preCheck # Only coverage no real unit tests nosetests runHook postCheck '';
pythonImportsCheck = [ "locationsharinglib" ];
meta = with lib; { description = "Python package to retrieve coordinates from a Google account"; homepage = "https://locationsharinglib.readthedocs.io/"; changelog = "https://github.com/costastf/locationsharinglib/blob/${version}/HISTORY.rst"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}