3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pipdate/default.nix
2020-06-11 10:00:17 +02:00

41 lines
690 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, appdirs
, requests
, pytest
}:
buildPythonPackage rec {
pname = "pipdate";
version = "0.5.1";
src = fetchPypi {
inherit pname version;
sha256 = "d10bd408e4b067a2a699badf87629a12838fa42ec74dc6140e64a09eb0dc28cf";
};
propagatedBuildInputs = [
appdirs
requests
];
checkInputs = [
pytest
];
checkPhase = ''
HOME=$(mktemp -d) pytest test/test_pipdate.py
'';
# tests require network access
doCheck = false;
meta = with lib; {
description = "pip update helpers";
homepage = "https://github.com/nschloe/pipdate";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}