Created
October 8, 2021 13:01
-
-
Save superherointj/ba6b5f52ba91f32e18bb356b41f61852 to your computer and use it in GitHub Desktop.
python3Packages.qstylizer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 490c51b0fbfce927781f5ef93a34509cdb848676 Mon Sep 17 00:00:00 2001 | |
From: superherointj <5861043+superherointj@users.noreply.github.com> | |
Date: Fri, 8 Oct 2021 09:57:40 -0300 | |
Subject: [PATCH 1/1] python3Packages.qstylizer: init 0.2.1 | |
--- | |
.../python-modules/qstylizer/default.nix | 35 +++++++++++++++++++ | |
pkgs/top-level/python-packages.nix | 2 ++ | |
2 files changed, 37 insertions(+) | |
create mode 100644 pkgs/development/python-modules/qstylizer/default.nix | |
diff --git a/pkgs/development/python-modules/qstylizer/default.nix b/pkgs/development/python-modules/qstylizer/default.nix | |
new file mode 100644 | |
index 00000000000..d817633ac9b | |
--- /dev/null | |
+++ b/pkgs/development/python-modules/qstylizer/default.nix | |
@@ -0,0 +1,35 @@ | |
+{ buildPythonPackage | |
+, fetchPypi | |
+, fetchFromGitHub | |
+, git | |
+, lib | |
+, pbr | |
+, setuptools-scm | |
+}: | |
+ | |
+buildPythonPackage rec { | |
+ pname = "qstylizer"; | |
+ version = "0.2.1"; | |
+ | |
+ src = fetchFromGitHub { | |
+ owner = "blambright"; | |
+ repo = "qstylizer"; | |
+ rev = version; | |
+ sha256 = "1zgnbbnr0qpbp07mj90rwppl27lralxg6knzdppf705xjh332hw8"; | |
+ }; | |
+ | |
+ nativeBuildInputs = [ | |
+ git | |
+ pbr | |
+ setuptools-scm | |
+ ]; | |
+ | |
+ SETUPTOOLS_SCM_PRETEND_VERSION = version; | |
+ | |
+ meta = with lib; { | |
+ description = "A python package designed to help with the construction of PyQt/PySide stylesheets"; | |
+ homepage = "https://github.com/blambright/qstylizer/"; | |
+ license = licenses.mit; | |
+ maintainers = with maintainers; [ superherointj ]; | |
+ }; | |
+} | |
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix | |
index 0b2ef1341f6..9c92d548bd9 100644 | |
--- a/pkgs/top-level/python-packages.nix | |
+++ b/pkgs/top-level/python-packages.nix | |
@@ -7778,6 +7778,8 @@ in { | |
qscintilla = self.qscintilla-qt4; | |
+ qstylizer = callPackage ../development/python-modules/qstylizer { }; | |
+ | |
qtawesome = callPackage ../development/python-modules/qtawesome { }; | |
qtconsole = callPackage ../development/python-modules/qtconsole { }; | |
-- | |
2.33.0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error: builder for '/nix/store/27cdz8q9arn4iwgrvq6in3qnwbsk4bn2-python3.9-qstylizer-0.2.1.drv' failed with exit code 1; | |
last 10 log lines: | |
> File "/nix/store/ggrr8nnvzxsn1ihir50gm6arwrifnmr2-python3.9-pbr-5.6.0/lib/python3.9/site-packages/pbr/hooks/__init__.py", line 25, in setup_hook | |
> metadata_config.run() | |
> File "/nix/store/ggrr8nnvzxsn1ihir50gm6arwrifnmr2-python3.9-pbr-5.6.0/lib/python3.9/site-packages/pbr/hooks/base.py", line 27, in run | |
> self.hook() | |
> File "/nix/store/ggrr8nnvzxsn1ihir50gm6arwrifnmr2-python3.9-pbr-5.6.0/lib/python3.9/site-packages/pbr/hooks/metadata.py", line 25, in hook | |
> self.config['version'] = packaging.get_version( | |
> File "/nix/store/ggrr8nnvzxsn1ihir50gm6arwrifnmr2-python3.9-pbr-5.6.0/lib/python3.9/site-packages/pbr/packaging.py", line 874, in get_version | |
> raise Exception("Versioning for this project requires either an sdist" | |
> Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name qstylizer was given, but was not able to be found. | |
> error in setup command: Error parsing /build/source/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name qstylizer was given, but was not able to be found. | |
For full logs, run 'nix log /nix/store/27cdz8q9arn4iwgrvq6in3qnwbsk4bn2-python3.9-qstylizer-0.2.1.drv'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment