Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d44322f1f384
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 52487f4e431d
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Jan 24, 2020

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    LnL7 Daiderd Jordan
    Copy the full SHA
    2681807 View commit details
  2. pythonPackages.pyhcl: init at 0.4.0

    kamadorueda authored and Jon committed Jan 24, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    LnL7 Daiderd Jordan
    Copy the full SHA
    dac34b3 View commit details
  3. Copy the full SHA
    52487f4 View commit details
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ buildPythonPackage
, fetchPypi
, isPy3k
, lib

# pythonPackages
, azure-core
, cryptography
, msrest
, futures
}:

buildPythonPackage rec {
pname = "azure-storage-file-share";
version = "12.0.0";
disabled = !isPy3k;

src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "15f5vk3vd2amggqqznx186raak9wgr57j0l1p9qa62kcl10bs9lg";
};

propagatedBuildInputs = [
azure-core
cryptography
msrest
];

# requires checkout from monorepo
doCheck = false;
pythonImportsCheck = [
"azure.core"
"azure.storage"
];

meta = with lib; {
description = "Microsoft Azure File Share Storage Client Library for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}
25 changes: 17 additions & 8 deletions pkgs/development/python-modules/fluidasserts/default.nix
Original file line number Diff line number Diff line change
@@ -12,9 +12,12 @@
, azure-mgmt-compute
, azure-mgmt-keyvault
, azure-mgmt-network
, azure-mgmt-resource
, azure-mgmt-security
, azure-mgmt-storage
, azure-mgmt-web
, azure-storage-file
, azure-storage-file-share
, bandit
, bcrypt
, beautifulsoup4
@@ -39,6 +42,7 @@
, psycopg2
, pycrypto
, pygments
, pyhcl
, pyjks
, pynacl
, pyopenssl
@@ -57,30 +61,30 @@

buildPythonPackage rec {
pname = "fluidasserts";
version = "20.1.28253";
version = "20.1.33141";
disabled = !isPy37;

src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "1d2smx9ywd1azsiwgavp69vlixmvwaabshprm192wnmprbghsp6c";
sha256 = "01l6yb3r19q8b4kwqkrzn7mpfsr65zsgzax2fbs43hb6pq6vavnx";
};

patchPhase = ''
# Version mismatches between current FluidAsserts and Nixpkgs
substituteInPlace ./setup.py \
--replace 'tlslite-ng==0.8.0-alpha29' 'tlslite-ng==0.7.5' \
--replace 'boto3==1.10.17' 'boto3==1.10.1' \
--replace 'tlslite-ng==0.8.0-alpha36' 'tlslite-ng==0.7.5' \
--replace 'boto3==1.11.7' 'boto3==1.10.1' \
--replace 'cfn-flip==1.2.2' 'cfn-flip==1.1.0.post1' \
--replace 'azure-mgmt-storage==7.1.0' 'azure-mgmt-storage==7.0.0' \
--replace 'typed-ast==1.4.1' 'typed-ast==1.4.0' \
--replace 'pillow==7.0.0' 'pillow==6.2.1' \
# Functionality that will be not present for the momment
# but that we'll work to add in the future
# Just a minimal portion of fluidasserts use this
substituteInPlace ./setup.py \
--replace "'azure-storage-file-share==12.0.0'," "" \
--replace "'pymssql==2.1.4'," "" \
--replace "'pytesseract==0.3.0'," "" \
--replace "'pytesseract==0.3.1'," "" \
--replace "'pywinrm==0.4.1'," "" \
--replace "'mitmproxy==5.0.1'," "" \
@@ -96,9 +100,12 @@ buildPythonPackage rec {
azure-mgmt-compute
azure-mgmt-keyvault
azure-mgmt-network
azure-mgmt-resource
azure-mgmt-security
azure-mgmt-storage
azure-mgmt-web
azure-storage-file
azure-storage-file-share
bandit
bcrypt
beautifulsoup4
@@ -123,6 +130,7 @@ buildPythonPackage rec {
psycopg2
pycrypto
pygments
pyhcl
pyjks
pynacl
pyopenssl
@@ -146,9 +154,10 @@ buildPythonPackage rec {
rm test/conftest.py
pytest \
test/test_cloud_aws_terraform_{ebs,ec2}.py \
test/test_cloud_aws_cloudformation_{cloudfront,dynamodb,ec2,elb,elb2}.py \
test/test_cloud_aws_cloudformation_{fsx,iam,kms,rds,s3,secretsmanager}.py \
test/test_format_{apk,file,jks,jwt,pdf,pkcs12,string}.py \
test/test_format_{apk,jks,jwt,pdf,pkcs12,string}.py \
test/test_helper_{asynchronous,crypto}.py \
test/test_lang_{javascript,java}.py \
test/test_lang_{core,csharp,docker,dotnetconfig,html,php,python,rpgle}.py \
46 changes: 46 additions & 0 deletions pkgs/development/python-modules/pyhcl/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ buildPythonPackage
, fetchFromGitHub
, isPy3k
, lib

# pythonPackages
, coverage
, pytest
}:

buildPythonPackage rec {
pname = "pyhcl";
version = "0.4.0";
disabled = !isPy3k;

src = fetchFromGitHub {
owner = "virtuald";
repo = pname;
rev = version;
sha256 = "09kwm3digbwn3kmbk76jswxgwfcfchik6cfa2xbhjanh4xs893hs";
};

# https://github.com/virtuald/pyhcl/blob/51a7524b68fe21e175e157b8af931016d7a357ad/setup.py#L64
configurePhase = ''
echo '__version__ = "${version}"' > ./src/hcl/version.py
'';

checkInputs = [
coverage
pytest
];

# https://github.com/virtuald/pyhcl/blob/51a7524b68fe21e175e157b8af931016d7a357ad/tests/run_tests.sh#L4
checkPhase = ''
coverage run --source hcl -m pytest tests
'';

meta = with lib; {
description = "HCL is a configuration language. pyhcl is a python parser for it";
homepage = "https://github.com/virtuald/pyhcl";
license = licenses.mpl20;
maintainers = with maintainers; [
kamadorueda
];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -312,6 +312,8 @@ in {

azure-storage-file = callPackage ../development/python-modules/azure-storage-file { };

azure-storage-file-share = callPackage ../development/python-modules/azure-storage-file-share { };

azure-storage-queue = callPackage ../development/python-modules/azure-storage-queue { };

azure-mgmt-nspkg = callPackage ../development/python-modules/azure-mgmt-nspkg { };
@@ -2254,6 +2256,8 @@ in {

python-ly = callPackage ../development/python-modules/python-ly {};

pyhcl = callPackage ../development/python-modules/pyhcl { };

pyhepmc = callPackage ../development/python-modules/pyhepmc { };

pytest = if isPy3k then self.pytest_5 else self.pytest_4;