beff245878
This re-enables the piep package for python3, as piep v0.10.0 (the current version) works fine with python3. The `disabled = isPy3k` line had been added for an earlier version of piep. Here, I chose not to remove the `disabled = ...` line, but to change to condition to `!isPy3k`, because https://github.com/timbertson/piep/commit/a5594a4e6a163d1ac3f7f95e1146bf4d8372344d and https://github.com/timbertson/piep/blob/9c032f593bbcb977b3b6048081bfa482dfe9a148/piep/main.py#L1 seem to indicate that piep no longer works with python2.
31 lines
606 B
Nix
31 lines
606 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, pygments
|
|
, isPy3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.10.0";
|
|
format = "setuptools";
|
|
pname = "piep";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-aM7KQJZr1P0Hs2ReyRj2ItGUo+fRJ+TU3lLAU2Mu8KA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pygments ];
|
|
nativeCheckInputs = [ nose ];
|
|
|
|
meta = with lib; {
|
|
description = "Bringing the power of python to stream editing";
|
|
homepage = "https://github.com/timbertson/piep";
|
|
maintainers = with maintainers; [ timbertson ];
|
|
license = licenses.gpl3;
|
|
};
|
|
|
|
}
|