Unverified Commit 4cff9301 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #313318 from natsukium/piep/refactor

python311Packages.piep: refactor and drop nose
parents fef4af54 2482fc8b
Loading
Loading
Loading
Loading
+17 −12
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, nose
, pygments
, isPy3k
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  pygments,
  pytestCheckHook,
}:

buildPythonPackage rec {
  version = "0.10.0";
  format = "setuptools";
  pname = "piep";
  disabled = !isPy3k;
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-aM7KQJZr1P0Hs2ReyRj2ItGUo+fRJ+TU3lLAU2Mu8KA=";
  };

  propagatedBuildInputs = [ pygments ];
  nativeCheckInputs = [ nose ];
  build-system = [ setuptools ];

  dependencies = [ pygments ];

  pythonImportsCheck = [ "piep" ];

  nativeCheckInputs = [ pytestCheckHook ];

  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;
    license = licenses.gpl3Only;
    mainProgram = "piep";
  };

}