depot/third_party/nixpkgs/pkgs/development/python-modules/decopatch/default.nix
Default email 3e2acf8aff Project import generated by Copybara.
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
2021-05-20 18:08:51 -05:00

37 lines
801 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, makefun
, setuptools-scm
}:
buildPythonPackage rec {
pname = "decopatch";
version = "1.4.8";
src = fetchPypi {
inherit pname version;
sha256 = "0i6i811s2j1z0cl6y177dwsbfxib8dvb5c2jpgklvc2xy4ahhsy6";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ makefun ];
postPatch = ''
substituteInPlace setup.py --replace "'pytest-runner', " ""
'';
# Tests would introduce multiple cirucular dependencies
# Affected: makefun, pytest-cases
doCheck = false;
pythonImportsCheck = [ "decopatch" ];
meta = with lib; {
description = "Python helper for decorators";
homepage = "https://github.com/smarie/python-decopatch";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}