mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-22 16:00:41 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
46 lines
885 B
Nix
46 lines
885 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, xmldiff
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "psrpcore";
|
|
version = "0.2.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jborean93";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-KMSyqXKhNH+i9Y0Mx3DHCwJZOkl4Va2n0zu0TEitslU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
xmldiff
|
|
];
|
|
|
|
|
|
pythonImportsCheck = [
|
|
"psrpcore"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for the PowerShell Remoting Protocol (PSRP)";
|
|
homepage = "https://github.com/jborean93/psrpcore";
|
|
changelog = "https://github.com/jborean93/psrpcore/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|