mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
python3Packages.rply: Fix tests, refactor
This commit is contained in:
parent
257d72ba07
commit
9d7973e52f
@ -1,21 +1,34 @@
|
||||
{ lib, pytest, fetchFromGitHub, buildPythonPackage, appdirs }:
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, appdirs
|
||||
, py
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rply";
|
||||
version = "0.7.7";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alex";
|
||||
repo = "rply";
|
||||
rev = "v${version}";
|
||||
sha256 = "1qv37hn7hhxd388znri76g0zjxsbwhxhcaic94dvw9pq4l60vqp6";
|
||||
hash = "sha256-5uINDCX4Jr4bSSwqBjvkS3f5wTMnZvsRGq1DeCw8Y+M=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ appdirs ];
|
||||
propagatedBuildInputs = [
|
||||
appdirs
|
||||
];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkPhase = ''
|
||||
HOME=$(mktemp -d) py.test tests
|
||||
checkInputs = [
|
||||
py
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user