Unverified Commit 35726c22 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #309756 from fabaff/winacl-bump

python312Packages.winacl: 0.1.8 -> 0.1.9
parents 98feb5c1 e82ddf6e
Loading
Loading
Loading
Loading
+13 −18
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, cryptography
, fetchPypi
, pythonOlder
{
  lib,
  buildPythonPackage,
  cryptography,
  fetchPypi,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "winacl";
  version = "0.1.8";
  format = "setuptools";
  version = "0.1.9";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-RCcaMCVi3lFin2jvFUDUDzom57wBc2RrAaZ3nO2tZEw=";
    hash = "sha256-r3DC7DAXi/njyKHEjCXoeBI1/iwbMhrbRuLyrh+NSqs=";
  };

  propagatedBuildInputs = [
    cryptography
  ];
  build-system = [ setuptools ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "cryptography>=38.0.1" "cryptography"
  '';
  dependencies = [ cryptography ];

  # Project doesn't have tests
  doCheck = false;

  pythonImportsCheck = [
    "winacl"
  ];
  pythonImportsCheck = [ "winacl" ];

  meta = with lib; {
    description = "Python module for ACL/ACE/Security descriptor manipulation";