pythonPackages.inflection: use fetchpypi, run tests (0.3.1)

This commit is contained in:
Ilya Kolpakov 2017-12-14 15:13:51 +01:00
parent cf62c0e884
commit fde8307846

View File

@ -1,15 +1,17 @@
{ lib, fetchurl, buildPythonPackage, pytest } : { lib, fetchPypi, buildPythonPackage, pytest } :
buildPythonPackage rec { buildPythonPackage rec {
pname = "inflection";
version = "0.3.1"; version = "0.3.1";
name = "inflection-${version}";
src = fetchurl { src = fetchPypi {
url= "mirror://pypi/i/inflection/${name}.tar.gz"; inherit pname version;
sha256 = "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq"; sha256 = "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq";
}; };
propagatedBuildInputs = [ pytest ]; checkInputs = [ pytest ];
# Suppress overly verbose output if tests run successfully
checkPhase = ''pytest >/dev/null || pytest'';
meta = { meta = {
homepage = https://github.com/jpvanhal/inflection; homepage = https://github.com/jpvanhal/inflection;