mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
37 lines
686 B
Nix
37 lines
686 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dictpath";
|
|
version = "0.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "p1c2u";
|
|
repo = "dictpath";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-4QRFjbeaggoEPVGAmSY+qVMNW0DKqarNfRXaH6B58ew=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "/^addopts/d" setup.cfg
|
|
'';
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
six
|
|
];
|
|
|
|
pythonImportsCheck = [ "dictpath" ];
|
|
|
|
meta = with lib; {
|
|
description = "Object-oriented dictionary paths";
|
|
homepage = "https://github.com/p1c2u/dictpath";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|