3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pipdate/default.nix

41 lines
688 B
Nix
Raw Normal View History

2019-05-20 15:54:11 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, appdirs
, requests
, pytest
}:
buildPythonPackage rec {
pname = "pipdate";
2019-11-11 11:13:39 +00:00
version = "0.3.4";
2019-05-20 15:54:11 +01:00
src = fetchPypi {
inherit pname version;
2019-11-11 11:13:39 +00:00
sha256 = "26bd12075e63ef7f8094da36c27bf5539d298f4ef2af6acba20e98b502439d6d";
2019-05-20 15:54:11 +01:00
};
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 ];
};
}