uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
45
pkgs/development/python-modules/msal-extensions/default.nix
Normal file
45
pkgs/development/python-modules/msal-extensions/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, lib
|
||||
, isPy27
|
||||
|
||||
# pythonPackages
|
||||
, msal
|
||||
, pathlib2
|
||||
, portalocker
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "msal-extensions";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-xnarpWsMzjeD3htcXs/oKNuZgWeHUSbKS0fcZDZFE1Q=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
msal
|
||||
portalocker
|
||||
] ++ lib.optionals isPy27 [
|
||||
pathlib2
|
||||
];
|
||||
|
||||
# upstream doesn't update this requirement probably because they use pip
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "portalocker~=1.0" "portalocker"
|
||||
'';
|
||||
|
||||
# No tests found
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "The Microsoft Authentication Library Extensions (MSAL-Extensions) for Python";
|
||||
homepage = "https://github.com/AzureAD/microsoft-authentication-extensions-for-python";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [
|
||||
kamadorueda
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue