nixpkgs/pkgs/development/python-modules/furl/default.nix

28 lines
721 B
Nix
Raw Normal View History

2020-02-19 12:12:43 +00:00
{ stdenv, buildPythonPackage, fetchPypi, flake8, six, orderedmultidict, pytest }:
2019-08-12 13:05:32 +00:00
buildPythonPackage rec {
pname = "furl";
2020-02-19 12:12:43 +00:00
version = "2.1.0";
2019-08-12 13:05:32 +00:00
src = fetchPypi {
inherit pname version;
2020-02-19 12:12:43 +00:00
sha256 = "08dnw3bs1mk0f1ccn466a5a7fi1ivwrp0jspav9arqpf3wd27q60";
2019-08-12 13:05:32 +00:00
};
2020-02-19 12:12:43 +00:00
checkInputs = [ flake8 pytest ];
2019-08-12 13:05:32 +00:00
propagatedBuildInputs = [ six orderedmultidict ];
2020-02-19 12:12:43 +00:00
# see https://github.com/gruns/furl/issues/121
checkPhase = ''
pytest -k 'not join'
'';
2019-08-12 13:05:32 +00:00
meta = with stdenv.lib; {
2020-02-19 12:12:43 +00:00
description = "furl is a small Python library that makes parsing and manipulating URLs easy";
homepage = "https://github.com/gruns/furl";
license = licenses.unlicense;
2019-08-12 13:05:32 +00:00
maintainers = with maintainers; [ vanzef ];
};
}