depot/third_party/nixpkgs/pkgs/development/python-modules/inflection/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

24 lines
661 B
Nix

{ lib, fetchPypi, buildPythonPackage, isPy27, pytest } :
buildPythonPackage rec {
pname = "inflection";
version = "0.5.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417";
};
checkInputs = [ pytest ];
# Suppress overly verbose output if tests run successfully
checkPhase = ''pytest >/dev/null || pytest'';
meta = {
homepage = "https://github.com/jpvanhal/inflection";
description = "A port of Ruby on Rails inflector to Python";
maintainers = with lib.maintainers; [ NikolaMandic ilya-kolpakov ];
license = lib.licenses.mit;
};
}